Sébastien Deleuze
7635ac38f6
Use uppercase for classpath-related static final field names
...
Closes gh-35525
2025-09-22 18:32:14 +02:00
Sam Brannen
0c61ac956b
Add missing @Override annotations
...
... and suppress "serial" warnings
2025-09-22 13:20:37 +02:00
Sébastien Deleuze
7a5d3a55fe
Refine EntityManagerRuntimeHints for Hibernate 7.1+
...
This commit adds support for Hibernate 7.1+ SqmQueryImpl class in
EntityManagerRuntimeHints, keeps the support for the former
QuerySqmImpl class for Hibernate 7.0 compatibility and adds a
related test.
Closes gh-35462
2025-09-11 15:24:55 +02:00
Juergen Hoeller
59804ab396
Align JpaTransactionManager default for nestedTransactionAllowed flag
...
Closes gh-35457
2025-09-10 17:41:25 +02:00
Juergen Hoeller
876b7d4209
Upgrade to Hibernate ORM 7.1
...
Closes gh-35308
2025-08-11 22:43:02 +02:00
Juergen Hoeller
03a8933f58
Add transactional support for StatelessSession (next to regular Session)
...
Exposes JPA-style shared proxy instances through LocalSessionFactoryBean.
Closes gh-7184
2025-08-01 17:18:43 +02:00
Juergen Hoeller
22a23322f3
Polishing
2025-07-10 20:05:47 +02:00
Sam Brannen
bb7c497bdd
Remove obsolete code from internal HibernateTransactionObject
...
See gh-35111
2025-06-29 16:33:01 +02:00
Juergen Hoeller
2e9e45ee55
Restore translation of IllegalArgumentException for JPA
...
See gh-35111
2025-06-25 22:39:18 +02:00
Juergen Hoeller
d47f1a1749
Migrate orm.hibernate5 to orm.jpa.hibernate package for Hibernate ORM 7.0
...
Closes gh-35111
2025-06-25 18:07:15 +02:00
Juergen Hoeller
90c875144a
Merge branch '6.2.x'
...
# Conflicts:
# spring-context/src/main/java/org/springframework/context/aot/BeanFactoryInitializationAotContributions.java
# spring-context/src/test/java/org/springframework/context/aot/ApplicationContextAotGeneratorTests.java
# spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateQueryException.java
2025-06-24 22:01:58 +02:00
Juergen Hoeller
b6aa6899a8
Polishing
2025-06-24 21:58:39 +02:00
Juergen Hoeller
04f3975e0f
Support for qualified EntityManager/EntityManagerFactory injection (JPA 3.2)
...
Closes gh-33414
2025-06-24 18:51:18 +02:00
Spring Builds
16edf9867a
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
2025-06-17 16:23:50 +02:00
Spring Builds
aee29b7f30
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
2025-06-17 15:54:58 +02:00
Juergen Hoeller
58246ec5ec
Merge branch '6.2.x'
2025-03-21 15:54:43 +01:00
Juergen Hoeller
d8f8e76791
Check potentially more specific HibernateException cause as well
...
Closes gh-34633
2025-03-21 15:53:24 +01:00
Juergen Hoeller
beb3a91847
Upgrade to Hibernate ORM 7.0.0.Beta4
...
Includes Hamcrest 3.0
See gh-33750
2025-03-11 19:17:00 +01:00
Sébastien Deleuze
7bc712e304
Upgrade NullAway to 0.12.4
...
This commit also slightly refines nullness but without
significant user-side impact expected.
Closes gh-34525
2025-03-03 08:45:54 +01:00
Sébastien Deleuze
2f8ff7eb41
Specify generic type nullness in spring-orm
...
See gh-34140
2025-01-14 12:35:02 +01:00
Sébastien Deleuze
73b24b6f7b
Refine null-safety in the spring-orm module
...
Closes gh-34159
2024-12-26 16:21:17 +01:00
Sébastien Deleuze
bc5d771a06
Switch to JSpecify annotations
...
This commit updates the whole Spring Framework codebase to use JSpecify
annotations instead of Spring null-safety annotations with JSR 305
semantics.
JSpecify provides signficant enhancements such as properly defined
specifications, a canonical dependency with no split-package issue,
better tooling, better Kotlin integration and the capability to specify
generic type, array and varargs element null-safety. Generic type
null-safety is not defined by this commit yet and will be specified
later.
A key difference is that Spring null-safety annotations, following
JSR 305 semantics, apply to fields, parameters and return values,
while JSpecify annotations apply to type usages. That's why this
commit moves nullability annotations closer to the type for fields
and return values.
See gh-28797
2024-12-19 11:07:23 +01:00
Juergen Hoeller
5cbb5d4d70
Upgrade to Hibernate ORM 7.0.0.Beta3 and Validator 9.0.0.CR1
...
Using relocated Maven coordinates.
See gh-33750
2024-12-15 14:37:54 +01:00
Juergen Hoeller
54a90b20ed
Avoid logger serialization behind shared EntityManager proxy
...
See gh-34084
2024-12-12 19:48:21 +01:00
Juergen Hoeller
2dbad8de41
Avoid unnecessary logger serialization
...
See gh-32459
2024-12-12 19:34:55 +01:00
Juergen Hoeller
cb633832a9
Remove unused HibernateCallback interface
...
See gh-33750
2024-12-11 16:48:12 +01:00
Juergen Hoeller
949432ce8b
General upgrade to Jakarta EE 11 APIs
...
Includes removal of ManagedBean and javax.annotation legacy support.
Includes AbstractJson(Http)MessageConverter revision for Yasson 3.0.
Includes initial Hibernate ORM 7.0 upgrade.
Closes gh-34011
Closes gh-33750
2024-12-03 13:30:25 +01:00
Brian Clozel
f204f4962d
Document XML parser usage against security false positives
...
Prior to this commit, our XML parser usage would be already haredened
against XXE (XML External Entities) attacks. Still, we recently received
several invalid security reports claiming that our setup should be
hardened.
This commit documents a few usages of XML parsers to add some more
context and hopefully prevent future invalid reports.
Closes gh-33713
2024-10-15 18:59:02 +02:00
Juergen Hoeller
594ed95f3c
Replace transaction isolation synchronization with ReentrantLock
...
Closes gh-33546
2024-09-27 11:36:21 +02:00
Yanming Zhou
8941e2876e
Replace 'e.g.' with 'for example' in documentation and comments
...
Closes gh-33515
2024-09-26 14:11:17 +02:00
Sam Brannen
932ce04541
Stop referring to old Spring versions in Javadoc
2024-07-01 17:50:52 +02:00
Sébastien Deleuze
d39fe9a444
Merge branch '6.1.x'
2024-06-06 10:06:24 +02:00
Sébastien Deleuze
c28a0d5627
Add missing hints for Hibernate @TenantId
...
Closes gh-32967
2024-06-06 10:04:35 +02:00
Sébastien Deleuze
6212831f5f
Merge branch '6.1.x'
2024-06-04 16:47:36 +02:00
Sébastien Deleuze
f6b608eecb
Consistently support Hibernate annotation hint inference on methods
...
See gh-32842
2024-06-04 16:46:25 +02:00
Sébastien Deleuze
4da1511ed3
Infer hints for Hibernate generators
...
This commit updates
PersistenceManagedTypesBeanRegistrationAotProcessor
in order to infer hints for Hibernate annotations meta
annotated with `@ValueGenerationType` (like `@CreationTimestamp`)
and `@IdGeneratorType`.
`@GenericGenerator` is not supported as it is deprecated as of
Hibernate 6.5.
Closes gh-32842
2024-06-04 16:46:25 +02:00
Juergen Hoeller
6f6e25bd5b
Merge branch '6.1.x'
2024-05-21 11:17:16 +02:00
Juergen Hoeller
65e1337d35
Polishing
2024-05-21 11:16:25 +02:00
Juergen Hoeller
645556a28c
Merge branch '6.1.x'
2024-05-07 15:53:00 +02:00
Juergen Hoeller
4f02be263f
Polishing
2024-05-07 15:52:13 +02:00
Juergen Hoeller
d9ca263065
Merge branch '6.1.x'
2024-05-06 20:11:56 +02:00
Juergen Hoeller
59a125d06f
Unwrap raw target Query instance in case of proxy mismatch
...
Closes gh-32766
2024-05-06 20:09:43 +02:00
Sébastien Deleuze
2350c8a8f5
Remove Hibernate substitutions and deprecated properties usage
...
This commit raises the baseline to Hibernate 6.5 for native support,
which allows to remove remaining Hibernate substitutions as well as
deprecated properties usage.
Closes gh-32314
2024-04-30 11:24:19 +02:00
Sébastien Deleuze
8b51b36729
Perform NullAway build-time checks in more modules
...
This commit enables null-safety build-time checks in
all remaining modules except spring-test.
See gh-32475
2024-03-26 15:53:01 +01:00
Sébastien Deleuze
2fea3d7921
Merge branch '6.1.x'
2024-03-26 15:41:46 +01:00
Sébastien Deleuze
290a41d398
Refine null-safety in more modules
...
This commit refines the null-safety in all remaining modules
except spring-test.
See gh-32475
2024-03-26 15:39:18 +01:00
Sébastien Deleuze
5b660da52d
Perform NullAway build-time checks in more modules
...
This commit enables null-safety build-time checks in:
- spring-jdbc
- spring-r2dbc
- spring-orm
- spring-beans
- spring-aop
See gh-32475
2024-03-26 09:59:30 +01:00
Sébastien Deleuze
3b4f8dbb8e
Merge branch '6.1.x'
2024-03-26 09:47:09 +01:00
Sébastien Deleuze
1b563f8ba4
Refine null-safety in more modules
...
This commit refines the null-safety in:
- spring-jdbc
- spring-r2dbc
- spring-orm
- spring-beans
- spring-aop
See gh-32475
2024-03-26 09:46:34 +01:00
Juergen Hoeller
e58ea0d945
Merge branch '6.1.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/core/CoroutinesUtils.java
2024-03-19 10:06:48 +01:00