Juergen Hoeller
7a042062f5
Compatibility with Hibernate 6.0/6.1 (for transitional purposes)
...
Closes gh-28813
2022-07-13 18:07:12 +02:00
Sam Brannen
ddd11610cf
Merge branch '5.3.x'
...
# Conflicts:
# spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DriverManagerDataSource.java
# spring-orm/src/main/java/org/springframework/orm/jpa/JpaVendorAdapter.java
2022-07-13 13:46:34 +02:00
Marc Wrobel
ac06d1dfa9
Fix and improve Javadoc in spring-orm
...
See gh-28796
2022-07-13 13:42:33 +02:00
Stephane Nicoll
6199835d6e
Harmonize generated class name conventions
...
This commit moves the responsibility of naming classes to the
GenerationContext. This was already largely the case before, except that
the concept of a "mainTarget" and "featureNamePrefix" was specific
to bean factory initialization contributors.
ClassNameGenerator should now be instantiated with a default target
and an optional feature name prefix. As a result, it does no longer
generate class names in the "__" package.
GeneratedClasses can now provide a new, unique, GeneratedClass or
offer a container for retrieving the same GeneratedClass based on an
identifier. This lets all contributors use this facility rather than
creating JavaFile manually. This also means that ClassNameGenerator
is no longer exposed.
Because the naming conventions are now part of the GenerationContext, it
is required to be able to retrieve a specialized version of it if a
code generation round needs to use different naming conventions. A new
withName method has been added to that effect.
Closes gh-28585
2022-06-23 16:05:23 +02:00
Phillip Webb
16e7f1f212
Complete refactor of AOT concepts
...
Remove the AOT code that now has an alternative API.
Closes gh-28414
2022-05-05 13:34:52 -07:00
Phillip Webb
b677eb90f9
Update PersistenceAnnotationBeanPostProcessor AOT support
...
Update `PersistenceAnnotationBeanPostProcessor` so that it provides
AOT contributions via the `BeanRegistrationAotProcessor` interface.
See gh-28414
2022-05-05 13:25:36 -07:00
Stephane Nicoll
26054fd3d4
AOT contribution for @PersistenceContext and @PersistenceUnit
...
Closes gh-28364
2022-04-25 11:01:09 +02:00
Juergen Hoeller
12d8010395
Merge branch '5.3.x'
2022-03-25 18:08:55 +01:00
Juergen Hoeller
edd66d96dd
Fix accidental use of deprecated setFlushMode method
...
Closes gh-28234
2022-03-25 18:06:39 +01:00
Sam Brannen
8c6d59aaaf
Polish contribution
...
See gh-28014
2022-02-19 14:43:26 +01:00
a.yazychyan
c5c926726d
Use enhanced switch expressions where feasible
...
Closes gh-28014
2022-02-19 14:34:05 +01:00
Juergen Hoeller
d07e1be623
Retrieve JDBC Connection via JdbcCoordinator (for compatibility with Hibernate 6)
...
Closes gh-28007
2022-02-04 22:24:50 +01:00
Juergen Hoeller
065ac8e081
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-orm/src/main/java/org/springframework/orm/hibernate5/SessionFactoryUtils.java
2022-01-26 00:06:12 +01:00
Juergen Hoeller
0a92d84778
Check open status before close call (aligned with EntityManagerFactoryUtils)
...
Closes gh-27972
2022-01-25 23:50:45 +01:00
Juergen Hoeller
4750a9430c
Early removal of 5.x-deprecated code
...
Closes gh-27686
2021-11-18 09:18:06 +01:00
Juergen Hoeller
0e1ba7aae5
Merge branch '5.3.x'
...
# Conflicts:
# build.gradle
# spring-context/src/main/java/org/springframework/context/annotation/Lazy.java
2021-11-09 22:39:58 +01:00
Juergen Hoeller
b167e1a93f
Remove unnecessary final declarations (for consistency)
2021-11-09 22:35:24 +01:00
Sam Brannen
63697ca06d
Merge branch '5.3.x'
2021-10-25 16:31:55 +02:00
Сергей Цыпанов
0268e76298
Improve mapping function in ExtendedEntityManagerCreator.createProxy()
...
Closes gh-27456
2021-10-25 16:30:26 +02:00
Sam Brannen
40ead013fa
Apply "instanceof pattern matching" in spring-orm
...
This has only been applied to `src/main/java`.
2021-10-14 21:55:20 +02:00
Juergen Hoeller
da457abd5b
Merge branch '5.3.x'
2021-10-12 15:19:40 +02:00
Juergen Hoeller
715f300fa1
Avoid expensive isReadable() check during classpath scan
...
Closes gh-25741
See gh-21372
2021-10-12 15:15:51 +02:00
Sam Brannen
381b7d035a
Merge branch '5.3.x'
2021-10-05 14:55:22 +02:00
Sam Brannen
48a507a993
Clean up warnings
2021-10-05 14:35:32 +02:00
Sam Brannen
030ba52805
Merge branch '5.3.x'
2021-09-29 16:56:33 +02:00
Sam Brannen
96e4d3a530
Fail Gradle build for Javadoc warnings
...
In order to catch Javadoc errors in the build, we now enable the
`Xwerror` flag for the `javadoc` tool. In addition, we now use
`Xdoclint:syntax` instead of `Xdoclint:none` in order to validate
syntax within our Javadoc.
This commit fixes all resulting Javadoc errors and warnings.
This commit also upgrades to Undertow 2.2.12.Final and fixes the
artifact names for exclusions for the Servlet and annotations APIs.
The incorrect exclusion of the Servlet API resulted in the Servlet API
being on the classpath twice for the javadoc task, which resulted in the
following warnings in previous builds.
javadoc: warning - Multiple sources of package comments found for package "javax.servlet"
javadoc: warning - Multiple sources of package comments found for package "javax.servlet.http"
javadoc: warning - Multiple sources of package comments found for package "javax.servlet.descriptor"
javadoc: warning - Multiple sources of package comments found for package "javax.servlet.annotation"
Closes gh-27480
2021-09-29 14:02:37 +02:00
Juergen Hoeller
ac5dc698e2
Update/remove outdated JPA and Hibernate version references
...
Closes gh-27487
2021-09-28 19:10:09 +02:00
Sam Brannen
3dc84c2d92
Merge branch '5.3.x'
2021-09-28 11:48:50 +02:00
Sam Brannen
bfdc99ab79
Fix Javadoc errors
...
See gh-27480
2021-09-28 11:44:12 +02:00
Juergen Hoeller
d84ca2ba90
Jakarta EE 9 migration
...
Upgrades many dependency declarations; removes old EJB 2.x support and outdated Servlet-based integrations (Commons FileUpload, FreeMarker JSP support, Tiles).
Closes gh-22093
Closes gh-25354
Closes gh-26185
Closes gh-27423
See gh-27424
2021-09-17 09:14:07 +02:00
Juergen Hoeller
0b580d194d
Early log entry for async EntityManagerFactory initialization failure
...
Closes gh-26093
2020-11-13 17:52:51 +01:00
Juergen Hoeller
500b54b86f
Expose plain Hibernate Session(Factory) interface by default again
...
See gh-26090
2020-11-13 17:50:51 +01:00
Juergen Hoeller
942400ae47
Expose Hibernate Session(Factory)Implementor interface by default
...
Closes gh-26090
2020-11-13 11:35:34 +01:00
Juergen Hoeller
b7e1553c9d
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
# spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.java
2020-10-06 15:37:54 +02:00
Juergen Hoeller
e417318915
Revise native Hibernate 5 bootstrapping with JTA transaction manager
...
Closes gh-25858
2020-10-06 15:31:19 +02:00
Juergen Hoeller
cf2e0c7959
Selected use of ArrayList instead of LinkedList in common places
...
See gh-25652
2020-08-27 14:14:44 +02:00
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
2020-08-26 18:32:08 +02:00
Juergen Hoeller
c99c3142ad
HibernateJpaDialect/HibernateTransactionManager alignment for 5.2+
...
See gh-25533
2020-08-06 12:00:20 +02:00
Juergen Hoeller
ba65cef52b
Upgrade Hibernate support baseline to 5.2+
...
Closes gh-25533
Closes gh-22326
2020-08-05 14:14:31 +02:00
Sam Brannen
cdc234d7db
Polish contribution
...
See gh-25446
2020-07-22 14:06:29 +02:00
XenoAmess
c547809e89
Use instanceof instead of Class#isInstance where feasible
...
Closes gh-25446
2020-07-22 14:06:29 +02:00
Sam Brannen
b33d2fe683
Clean up warnings in Gradle build, polishing, etc.
2020-06-24 15:02:24 +02:00
Juergen Hoeller
17cab9660c
Deprecate TransactionSynchronizationAdapter
...
Closes gh-21725
2020-06-17 11:02:31 +02:00
Сергей Цыпанов
7949937655
Remove redundant assignment of default values to volatile fields
2020-06-17 10:50:51 +02:00
Sam Brannen and igor-suhorukov
8099fc8178
Use try-with-resources language construct where feasible
...
Closes gh-2063
Co-authored-by: igor-suhorukov <igor.suhorukov@gmail.com >
2020-06-16 22:57:45 +02:00
Juergen Hoeller
9c1c787ee9
Polishing
2020-06-08 19:27:38 +02:00
Juergen Hoeller
e955e52f2f
Refactor method name dispatching to switch statements
...
Closes gh-25163
2020-05-29 23:07:25 +02:00
Juergen Hoeller
7207f7645c
Deprecate InstantiationAwareBeanPostProcessorAdapter
...
Consistently relying on default methods in the corresponding interfaces.
Closes gh-25165
2020-05-29 23:07:10 +02:00
Juergen Hoeller
42ff01b5aa
Merge branch '5.2.x'
2020-05-29 15:57:32 +02:00
Juergen Hoeller
cd4ef6f781
Consistently refer to FlushMode.MANUAL instead of outdated NEVER
...
Closes gh-25158
2020-05-29 15:51:54 +02:00