Commit Graph

1010 Commits

Author SHA1 Message Date
Christian Beikov da22678c74 HHH-18154 Implement caching for assemblers and initializers
* Make initializers stateless and have separate data classes stored in the RowProcessingState
* Defer determination whether batching should apply and which lock mode should be used until startLoading
* Inline EntityEntry to EntityHolder to avoid map lookup
2024-06-10 09:48:01 +02:00
Gavin King aa91138b6b HHH-18230 throw when collection contains an unsaved instance
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-05 16:08:43 +02:00
marko-bekhta 045053ff8a HHH-17030 Followup: move schema check to launcher listener 2024-05-31 15:22:00 +02:00
Christian Beikov 940c898ecf Various improvements:
* Sprinkle some @Nullable annotations to better understand nullness guarantees
* Fix some potential NPEs
* Improve Oracle array_agg emulation
* Prepare for aggregate component array support
2024-05-03 16:49:39 +02:00
Florian Heck 42eadbc93b HHH-17975 add testcase for retrieving revision by an Instant 2024-04-19 12:34:12 +02:00
Florian Heck e8f743993f HHH-17975: use the same precision (millis) for resolving revision timestamps from Instant as from LocalDateTime 2024-04-19 12:34:12 +02:00
Christian Beikov d423b52be3 HHH-17904 Introduce config property to enable native enum type 2024-03-28 17:02:20 +01:00
Gavin King 53301b530d HHH-17833 change log warnings for invalid mappings to exceptions
finally decided to just put an end to this because it's bad and that's that
2024-03-11 00:13:41 +01:00
Vincent Stradiot 52526cd155 HHH-17442 Add test 2024-02-01 10:11:32 +01:00
Vincent Stradiot a3342ec233 HHH-17442 Use FlushMode.MANUAL for select query in ValidityAuditStrategy 2024-02-01 10:11:32 +01:00
mgarcia.devinuesa b386b25676 HHH-16881 - Fix conditional when CDI extensions are enabled 2023-12-19 19:02:14 +01:00
yjpark 46b064633b HHH-17023 Implements AltibaseDialect 2023-11-14 14:51:35 +01:00
Christian Beikov bfb9fcc0f6 HHH-17355 Unify array_contains and array_contains_all as well as deprecate FunctionRenderingSupport in favor of new FunctionRenderer contract 2023-11-06 18:01:04 +01:00
waahhh 634f21baff HHH-17340 fix typos in javadoc 2023-10-27 22:40:40 +02:00
Jan Schatteman cb6a78dc44 HHH-17301 - Reduce amount of connections
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-10-19 11:27:45 +02:00
Yanming Zhou f309a88552 HHH-16935 Fix inconsistent method name 2023-10-11 18:49:57 +02:00
Chris Cranford b9a88a9670 HHH-17139 Support Instant as revision timestamps 2023-10-11 14:28:23 +02:00
Kai Suchomel f1e2fa17ef HHH-17243 added Testcase for java.time.Duration 2023-09-29 10:34:34 +02:00
Chris Cranford e1f9ccaee9 HHH-17080 Fix LocalDateTime resolved value precision 2023-09-19 10:22:29 +02:00
Gavin King 7074188875 HHH-16592 fix incorrect mapping in envers test 2023-09-11 14:53:56 +02:00
Chris Cranford 586cafa4a1 HHH-17189 Respect Audited annotations in component mapped super types 2023-09-09 17:49:32 -04:00
Christian Beikov dd9a51a53a Implement sane collection of skip/require dialect annotations 2023-09-07 14:43:31 +02:00
Christian Beikov 2176d3aaeb Account for PG < 14 not supporting stored procedure OUT parameters 2023-09-06 20:02:37 +02:00
Christian Beikov d4accd0233 Make use of connection pooling in most tests 2023-09-06 14:57:05 +02:00
Gavin King 70626c1e44 HHH-17158 detect incorrect use of @JoinColumn outside @JoinTable/@CollectionTable 2023-09-04 17:27:19 +02:00
Steve Ebersole d3a1bd70ae HHH-17047 - Follow up tasks for Gradle 8.2 upgrade
- toolchains
- lazy Task creation
- documentation (documentation/ and release/) tasks
2023-08-14 07:57:48 -05:00
Sanne Grinovero aea84e3fdc HHH-17061 Remove deprecated method PersistentClass#getJoinIterator 2023-08-10 11:32:04 +02:00
Sanne Grinovero 5754cd608c HHH-17061 Remove PersistentClass#getPropertyIterator 2023-08-10 11:32:04 +02:00
Sanne Grinovero ee85011c5d HHH-17061 Remove PersistentClass#getUnjoinedPropertyIterator() 2023-08-10 11:32:04 +02:00
Sanne Grinovero b602c9bddf HHH-17055 Remove deprecated method Value#getColumnIterator() 2023-08-10 11:32:04 +02:00
Chris Cranford 03d5ce08bc HHH-14176 Use column name 'description' rather than 'desc`.
Using the `desc` keyword creates problems for certain dialects, so changed the
property's name so that there is no keyword conflicts.
2023-07-24 12:11:43 +02:00
Christian Beikov 940259dc4c HHH-14176 Handle embedded composite ids in envers specially to avoid lazy loading 2023-07-24 12:11:43 +02:00
Jan Schatteman f175581180 HHH-14176 Added test case for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-07-24 12:11:43 +02:00
Sanne Grinovero 042ea16b37 HHH-16963 Avoid H2's capability to register a JVM shutdown hook: causes classloader leaks during tests 2023-07-21 11:43:01 -04:00
Steve Ebersole e2504647d4 HHH-13741 - LOG_SLOW_QUERY parameter doesn't always log SQL 2023-07-19 11:35:52 -05:00
Sanne Grinovero 0fb5895d08 Automated cleanup: suboptimal string handling (thanks IntelliJ) 2023-06-26 14:38:59 +01:00
Gavin King 51460470f4
add AuditReader.find(Class,Object, LocalDateTime) (#6811)
since java.util.Date is bad

and add some Javadoc to AuditReader
2023-06-16 14:00:09 +02:00
Gavin bdacc8b05f make it easier to mock the QueryEngine 2023-06-09 17:24:58 +02:00
Francois Steyn a415555df4 HHH-16563: Using jakarta.annotation.Generated instead of javax versions 2023-06-07 16:46:13 -05:00
Marco Belladelli 4e9a643346 Fix several tests failing on Oracle 11 and some others on older dbs 2023-05-15 09:27:35 +02:00
Gavin 20b157000c HHH-16125 final cleanup of legacy enum converters stuff 2023-04-29 15:42:56 +02:00
Gavin c91cfdf2f1 HHH-16125 delete/fix a bunch of assertions that constrain implementation details
these are bad tests; they don't test observable behavior
2023-04-29 15:42:56 +02:00
Gavin febf39cc55 HHH-16125 complete redesign of how enum mappings work
- introduce SqlTypes.ENUM
- no more converters!
- finish of Potgres enum support
- disable BIND for enums in Criteria on PostgreSQL
  (PostgreSQL doesn't do the needed type conversion to the enum type)
2023-04-29 15:42:56 +02:00
Christian Beikov 75caf15e6b HHH-16382 Fix resolving table references especially for self-referential associations 2023-04-24 20:02:44 +02:00
Gavin 7b8cd14052 HHH-16163 update tests to use new annotations 2023-04-08 13:10:46 +02:00
Andrea Boriero 570ccae476 HHH-16097 Move all tests from documentation into hibernate-core 2023-03-24 07:43:13 -05:00
Steve Ebersole e675962779 HHH-16311 - Migrate away from UserType for enum handling 2023-03-17 13:13:24 -05:00
Steve Ebersole b276128f56 HHH-16284 - Rename JdbcParameterRender to ParameterMarkerStrategy 2023-03-13 15:35:38 -05:00
Steve Ebersole 99f8b0fd3d HHH-16260 - JdbcParameterRenderer not called with dynamic filters
HHH-16256 - JdbcParameterRenderer to have an impact on write operations
HHH-16273 - Support for Dialect native JdbcParameterRenderer
2023-03-09 19:51:33 -06:00
Sanne Grinovero 6724f7aeb5 HHH-16223 Deprecate HBM2DDL_SCRIPTS_ACTION 2023-03-07 21:39:17 +00:00