Commit Graph

20090 Commits

Author SHA1 Message Date
Gavin King 1d3124e06d very minor cleanup in SessionImpl 2024-12-15 18:37:37 +01:00
Gavin King fd1a957c13 add upserts to micrometer metrics 2024-12-15 18:36:55 +01:00
Gavin King d3ce8d45ea HHH-18942 JFR events for stateless sessions
also add Statistics for upsert
2024-12-15 18:36:55 +01:00
Gavin King caed673720 HHH-18942 JFR events for collection recreate/update/remove 2024-12-15 18:36:55 +01:00
Gavin King ad1a86f570 don't disable stack traces for JFR events 2024-12-15 18:36:55 +01:00
Gavin King 225c411d86 HHH-18942 JFR events for entity insert/update/delete 2024-12-15 18:36:55 +01:00
Gavin King dd7fb9cab8 add missing finals 2024-12-15 18:36:55 +01:00
nathan.xu ee3b3390e5 fix some obvious defect in javadoc for resource/transaction package 2024-12-15 13:13:12 +01:00
Gavin King 86a43ca9dd remove use of SharedSessionContractImplementor in UserType
it was arguably a layer-breaker
2024-12-14 19:33:22 +01:00
Gavin King c5c9f1184d remove use of SessionFactoryImplementor in Instantiators and CompositeUserType
it was not needed and arguably a layer-breaker
2024-12-14 19:33:22 +01:00
Nathan Xu 2df92c25b8
improve integration doc (#9322)
* improve integration doc

Co-authored-by: nathan.xu <nathan.xu@procor.com>
Co-authored-by: Gavin King <gavin@hibernate.org>
2024-12-14 17:06:35 +01:00
Gavin King 9a0948a32c more extreme solution 2024-12-14 15:50:13 +01:00
Gavin King a1b0fac8f1 various cleanups 2024-12-14 15:50:13 +01:00
Gavin King 8b4d6b75bc clean up formatters and remove TypeConfigurationWrapperOptions
It's wrong to build a WrapperOptions from a TypeConfiguration
2024-12-14 15:50:13 +01:00
Gavin King 626f9a7281 remove logging that doesn't belong 2024-12-13 10:18:14 +01:00
Gavin King d43a383f10 some minor refactoring 2024-12-13 10:18:14 +01:00
Gavin King d83abc6f80 modernize some typecasts in Initiators 2024-12-13 10:18:14 +01:00
Gavin King dec2716459 clean imports 2024-12-13 01:50:37 +01:00
Gavin King aa6e46eb79 get rid of use of tracev()
- at most one of these is worse without it
- there was even a performance bug due to missing isTraceEnabled()
2024-12-13 01:50:37 +01:00
Gavin King 1b1dfaecd0 finally kill of Lifecycle after all these years 2024-12-13 01:50:37 +01:00
Gavin King 2a03f97b73 remove deprecated operations of LockOptions 2024-12-13 01:50:37 +01:00
Gavin King 9823fccfe8 remove a deprecated operation 2024-12-13 01:50:37 +01:00
Gavin King 399a1d0071 add forRemoval=true in two places 2024-12-13 01:50:37 +01:00
Gavin King c8e4fead2c remove some unused deprecated operations 2024-12-13 01:50:37 +01:00
Gavin King 7f8b685973 HHH-18929 generate check constraints for discriminator columns 2024-12-12 23:15:10 +01:00
Gavin King 18d6a993b2 HHH-18929 fix a test that looks wrong 2024-12-12 23:15:10 +01:00
Gavin King 3f92cfb98e very minor 2024-12-12 19:43:39 +01:00
Gavin King 8782cb689e add missing jdoc for hibernate.discriminator.force_in_select setting 2024-12-12 19:43:39 +01:00
Christian Beikov 301c38bf7d HHH-18932 Use target table columns for SQM joins, except for join table associations 2024-12-12 17:02:11 +01:00
marko-bekhta 58d2239d85 Do not rely on expressly for Hibernate Validator message interpolation 2024-12-12 17:01:38 +01:00
Rguihard 4b52bff090 HHH-18916: regex completion
According to mysql and postgresql, add "cross" and "full" keywords in the regex
https://dev.mysql.com/doc/refman/8.4/en/join.html
https://www.postgresql.org/docs/current/queries-table-expressions.html#id-1.5.6.6.5.6.4.3.1.1
2024-12-12 16:52:56 +01:00
Rguihard a03d22190d HHH-18916 - extends addQueryHints behavior
QUERY_PATTERN regex handles queries with natural, left/right, inner/outer join

Add unit test to check existing behavior
2024-12-12 16:52:56 +01:00
Christian Beikov a893f15884 Drop JDK 20 and add JDK 25-ea testing 2024-12-12 14:52:04 +01:00
Christian Beikov 32d1455326 Fix ReSaveReferencedDeletedEntity for CockroachDB and HANA 2024-12-12 14:20:11 +01:00
Christian Beikov e93a07b4f9 Only cast LONG32 to text on PG to avoid type comparison related issues 2024-12-12 14:20:11 +01:00
Gavin King fc58d614d6 improve documentation of stats.spi 2024-12-12 11:44:28 +01:00
Dmitriy Churilov 7780b74c21 HHH-13790 Temporary session not being closed 2024-12-12 11:34:33 +01:00
Réda Housni Alaoui 27aff6eb01 HHH-18371 JDBC connection acquisition failure can lead to query cache corruption 2024-12-12 11:32:30 +01:00
Gavin King ea202ebbfb code cleanups to MappingMetamodelImpl 2024-12-12 01:05:46 +01:00
Gavin King 1c93f10adf update SessionFactory javadoc 2024-12-12 01:05:46 +01:00
Čedomir Igaly 816b29d390 HHH-18894 Create and return new EnumJavaType object if class name represents enum that is not currently known 2024-12-11 15:51:27 +01:00
Čedomir Igaly 78e6d632f2 HHH-18894 Simplified test case selecting (non-managed) enum constant as column 2024-12-11 15:51:27 +01:00
Gavin King b8a6097f5b treat empty/blank @DiscriminatorValue literally
the spec doesn't say it can't be empty, and so I think this
is the most natural interpretation
2024-12-11 14:00:10 +01:00
Gavin King 6cfcee5e4b log warnings when settings are ignored for Datasource 2024-12-11 11:33:08 +01:00
Andrea Boriero 0531454f88 HHH-15186 Add test showing the issue has been resolved 2024-12-11 11:26:28 +01:00
Marco Belladelli e38ae96acf HHH-18868 Cleanup tests and mapper-supers identifier mapper check 2024-12-11 09:49:29 +01:00
Čedomir Igaly 8129ca011a HHH-18868 Simplified ID property check 2024-12-11 09:06:15 +01:00
Čedomir Igaly 81a7a20c78 HHH-18868 Renamed test classes 2024-12-11 09:06:15 +01:00
Čedomir Igaly 2e583d556d HHH-18868 ID and version properties are handled separately, do not process them twice 2024-12-11 09:06:15 +01:00
Čedomir Igaly be2551154f HHH-18868 Adapted test case from https://hibernate.atlassian.net/browse/HHH-18868 2024-12-11 09:06:15 +01:00