Commit Graph

12198 Commits

Author SHA1 Message Date
Marco Belladelli e55bdbcc94 HHH-18337 Avoid calling `Configurable#create` for `null` creation context
Also change a failing test so it doesn't pass `null` as creation context
2024-09-18 13:51:43 +02:00
Steve Ebersole 3e215b5cee HHH-18337 - SequenceStyleGenerator not respecting physical naming strategy 2024-09-16 16:08:13 -05:00
Steve Ebersole efd45288d9 HHH-18337 - SequenceStyleGenerator not respecting physical naming strategy 2024-09-16 15:17:15 -05:00
Marco Belladelli 744732b726 HHH-18174 Fix junction entity name uses algorithm for subqueries
(cherry picked from commit 95ef45bef8)
2024-09-16 14:57:24 -05:00
Marco Belladelli 0e9577a4d6 HHH-18174 Add test for issue
(cherry picked from commit a33ae2d580)
2024-09-16 14:57:24 -05:00
Christian Beikov 9c5cf75111 HHH-18447 Try using native cast for string to boolean 2024-09-16 14:09:29 -05:00
Steve Ebersole 723e18d30a HHH-18337 - SequenceStyleGenerator not respecting physical naming strategy 2024-09-16 13:57:53 -05:00
Marco Belladelli 88bcc7140d HHH-18337 Account for physical naming strategy when querying db sequence 2024-09-16 12:22:43 -05:00
Marco Belladelli 7c66788c93 HHH-18337 Add test for issue 2024-09-16 12:22:43 -05:00
Gavin King b09b27c7d6 HHH-18625 - Add Configurable#create(GeneratorCreationContext)
https://hibernate.atlassian.net/browse/HHH-18625
2024-09-16 12:19:03 -05:00
Andrea Boriero a1d0b82c8a HHH-18489 Lazy, unowned one-to-one associations get loaded eagerly in queries - even with bytecode enhancement 2024-09-16 12:01:46 -05:00
Andrea Boriero 51fd19f055 HHH-18489 Test initialization of unowned, lazy one-to-one associations 2024-09-16 12:01:46 -05:00
Yoann Rodière c900702e3d HHH-18489 Test initialization of unowned, lazy one-to-one associations (and more) in queries 2024-09-16 12:01:46 -05:00
Marco Belladelli cf82dfa389
Fix HANA error where table only contains PK 2024-09-16 17:15:28 +02:00
Marco Belladelli 9f777e8d5b HHH-18612 Avoid writing `import.sql` file to classpath 2024-09-16 11:26:37 +02:00
Marco Belladelli 29278a7677 HHH-18436 Apply plural attribute ordering when creating the join 2024-09-16 11:26:37 +02:00
Marco Belladelli 7e0e2f77d4 HHH-18436 Add test for issue 2024-09-16 11:26:37 +02:00
Marco Belladelli 64181507f3 HHH-18439 Account for null values in query cache hit
Also, solve an assertion error in query result type check when selecting `null` literals
2024-09-16 11:26:37 +02:00
Marco Belladelli f5c5aa943e HHH-18439 Add test for issue 2024-09-16 11:26:37 +02:00
Marco Belladelli 26c1655117 HHH-18445 Always preserve correct property order for java records 2024-09-16 11:26:37 +02:00
Marco Belladelli 8bbdab5505 HHH-18445 Add test for issue 2024-09-16 11:26:37 +02:00
Marco Belladelli c8b1c881d8 HHH-18484 Account for null generated values for no-op updates 2024-09-16 11:26:37 +02:00
Marco Belladelli cfeee89c05 HHH-18484 Add test for issue 2024-09-16 11:26:37 +02:00
Andrea Boriero d0ddbb5d47 HHH-18511 ArrayIndexOutOfBoundsException in ImmutableFetchList 2024-09-14 09:09:30 +02:00
Andrea Boriero 4166584cd2 HHH-18511 Add test for issue 2024-09-14 09:09:30 +02:00
Marco Belladelli 54b809c4c6 HHH-18486 Prioritize custom name-resolvers before defaulting to dynamic 2024-09-13 12:41:59 +02:00
Marco Belladelli bc2a232e58 HHH-18486 Add test for issue 2024-09-13 12:41:59 +02:00
Marco Belladelli 48607ade1c HHH-18478 Retrieve concrete entity descriptor inside entity initializer's resolve state 2024-09-13 12:41:59 +02:00
Marco Belladelli 8af344e48a HHH-18478 Add test for issue 2024-09-13 12:41:59 +02:00
Marco Belladelli 364fe49e55 HHH-18490 Handle "concrete" generic embeddable attributes defined in mapped superclass
Also, resolve the correct expressible for function return type resolvers based on argument types.
2024-09-13 12:41:59 +02:00
Marco Belladelli 02550618ca HHH-18490 Add test for issue 2024-09-13 12:41:59 +02:00
Marco Belladelli b26977358a HHH-18502 Fix compiler method selection for #in(Collection<?> values) 2024-09-13 12:41:59 +02:00
Marco Belladelli e9231c01ed HHH-18502 Add test for issue 2024-09-13 12:41:59 +02:00
Marco Belladelli 6573212b75 HHH-18469 Use collection element table group when resolving circular bidirectional fetch 2024-09-13 12:41:59 +02:00
Marco Belladelli e1baabbded HHH-18469 Add test for issue 2024-09-13 12:41:59 +02:00
Marco Belladelli 49cca414b9 HHH-18503 Register root table name usage for persisters with physical discriminators 2024-09-13 12:41:59 +02:00
marko-bekhta aae1ef9df0 HHH-18503 Add a test showing the issue 2024-09-13 12:41:59 +02:00
Andrea Boriero 878c4b95f3 HHH-18480 ClassCastException when updating a Blob with Oracle 2024-09-12 20:54:48 +02:00
Andrea Boriero dc5cef36a8 HHH-18480 Add test for issue 2024-09-12 20:54:48 +02:00
Andrea Boriero 0105dfe57d HHH-18353 ArrayConstructorFunction comparing argument types by reference causes FunctionArgumentException 2024-09-12 15:43:35 +02:00
Andrea Boriero a5b353b34b HHH-18353 Add test for issue 2024-09-12 15:43:35 +02:00
Andrea Boriero 12cd4a69ca HHH-18565 Mark bytecode enhanced lazy entities as RESOLVED 2024-09-12 14:37:14 +02:00
Andrea Boriero 41b215010c HHH-18565 Add test for issue 2024-09-12 14:37:14 +02:00
Matej Pucihar c16eb64bbd HHH-18565 reproduce issue 2024-09-12 14:37:14 +02:00
Andrea Boriero e1ded5d437 HHH-18556 Expressions.nullExpresion() in querydsl result in NPE in SqmExpressible 2024-09-12 14:36:46 +02:00
Andrea Boriero 8efcf26b37 HHH-18556 Add test for issue 2024-09-12 14:36:46 +02:00
Gavin King 63dde7dc09 reset the ValueHandlingMode after pagination 2024-09-10 23:33:40 +02:00
Paria df898a92a1 HHH-18470: fix duplicate generated FK names for TABLE_PER_CLASS inheritance 2024-09-08 14:58:57 +02:00
Noel Trout cc6ca28466
HHH-18571 Fix bug and correctly report effective batching 2024-09-05 14:52:53 +02:00
Noel Trout 98d9ac3654
HHH-18571 Added test case demonstrating issue 2024-09-05 14:52:50 +02:00
Alex 626ef42e7d
HHH-18560: added unittest 2024-09-05 10:00:36 +02:00
Alex b91d988683
HHH-18560: fix for invalid queries executed on DB2i AS/400 machine 2024-09-05 10:00:32 +02:00
Kyrylo Merzlikin 4863033429
HHH-18516 - Ignore @AttributeOverride for map key when checking type of map value 2024-08-30 09:45:26 +02:00
Marco Belladelli cdcfbf4584
HHH-18518 Using StringHelper to split versionString instead of regex parsing 2024-08-30 09:45:03 +02:00
Tommy Svendsen 737d7a90a1
HHH-18518 Using StringHelper to split versionString instead of regex parsing 2024-08-30 09:36:43 +02:00
Tommy Svendsen 74f1aa7ee7
HHH-18518 change implementation to capture MySQL custom versions better 2024-08-30 09:36:40 +02:00
Yanming Zhou 46bb5011b5 HHH-18538 Improve database connection info from configured DataSource 2024-08-29 18:10:38 +02:00
Vladimír Kuruc 8ddb40fa77 HHH-18531 Fix for Informix timestamp literal error 2024-08-28 17:15:26 +02:00
Marco Belladelli c85efaa7d2 HHH-18524 Fix binding of meta-annotated id generators for id-class 2024-08-28 16:21:11 +02:00
Marco Belladelli 049b76c2d1 HHH-18524 Add test for issue 2024-08-28 16:21:11 +02:00
Gavin King d145180b66 HHH-18487 align behavior of UnsavedValueFactory with semantics of persist()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-28 16:15:42 +02:00
Christian Beikov bf69471d40 HHH-18506 Reduce itable stubs during dirty checking 2024-08-21 18:54:23 +02:00
Christian Beikov 4c124cde38 HHH-18506 Improve flush performance by reducing itable stubs 2024-08-21 18:54:23 +02:00
Christian Beikov 3002fc31c0 HHH-17646 Optimize away real table group rendering if possible 2024-08-16 13:31:16 +02:00
Christian Beikov 9b1eb785e5 HHH-18493 Resolving already initialized collection elements leads to assertion error 2024-08-16 13:30:25 +02:00
Gary Gregory ab4439622b HHH-18466 egression from 5.6.15.Final where a mutable natural IDs query
cannot find an entity
2024-08-15 12:27:08 -05:00
Gary Gregory e4f86744aa HHH-18466 egression from 5.6.15.Final where a mutable natural IDs query
cannot find an entity
2024-08-15 12:27:08 -05:00
Gary Gregory 4e60de1130 HHH-18466 Failing test to demonstrate
https://hibernate.atlassian.net/browse/HHH-18466
2024-08-15 12:27:08 -05:00
lrobot a6673e2c34 HHH-18282 fix generate error sql in case of @DiscriminatorValue("not null") 2024-08-15 15:53:11 +02:00
Marco Belladelli 3d640c0150 HHH-18400 Account for converters applied to comparison operands 2024-08-14 17:36:27 +02:00
Marco Belladelli 07e81e4911 HHH-18400 Add test for issue 2024-08-14 17:36:27 +02:00
Yanming Zhou a1a4446f09 HHH-18414 Add test for issue 2024-08-12 21:59:34 -06:00
Gavin King b5a5869b9b HHH-18414 remove duplicated call to callAttributeBindersInSecondPass()
alternative to proposed fix by @quaff

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-12 21:59:34 -06:00
Gavin King f828b2a914 improve javadoc surrounding Blob/Clob APIs
and mark XlobProxy as @Internal

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-12 20:21:12 -06:00
Christian Beikov f8a6106ea2 HHH-18476 Reset resolved entities after resolveEntityKeyOnly and improve loading further 2024-08-12 18:25:54 +02:00
Marco Belladelli 062afdb6cd HHH-18103 Correct metamodel for embeddables with a mapped superclass 2024-08-12 16:33:14 +02:00
Marco Belladelli 00c7707de0 HHH-18103 Add test for issue 2024-08-12 16:33:14 +02:00
Andrea Boriero 54c1c4a2d9 HHH-17997 Querying an Entity with CacheConcurrencyStrategy.READONLY throws UnsupportedOperationException: Can't update readonly object 2024-08-07 19:24:37 +02:00
Andrea Boriero 20acd5292c HHH-17997 Add test for issue 2024-08-07 19:24:37 +02:00
Christian Beikov 263ef56970 HHH-17465 Incorrect metamodel for shared version attribute in @MappedSuperclass 2024-08-07 18:49:51 +02:00
Christian Beikov e54a6e15b2 HHH-18463 Add AzureDialect and determine SQL Server version based on compatibility level 2024-08-07 18:49:29 +02:00
Marco Belladelli 5550c20120 HHH-18399 Avoid collecting duplicate attribute for to-one inverse table 2024-08-07 17:44:29 +02:00
Marco Belladelli 1ab7493e73 HHH-18399 Add test for issue 2024-08-07 17:44:29 +02:00
Marco Belladelli ecd22c0811 HHH-18391 Check embeddable properties in fetch paths 2024-08-07 17:43:11 +02:00
hugothomas e63c7f814a HHH-18391 Add test for issue 2024-08-07 17:43:11 +02:00
Marco Belladelli 4ca26f9415 HHH-18309 Fix Oracle limit handler for native queries 2024-08-07 17:42:41 +02:00
Marco Belladelli 9ec2dbb620 HHH-18309 Add test for issue 2024-08-07 17:42:41 +02:00
Marco Belladelli 4da2659292 HHH-18378 Check where clause before reusing existing joins for fetch 2024-08-07 17:42:09 +02:00
Marco Belladelli 0272fc7fbd HHH-18378 Add test for issue 2024-08-07 17:42:09 +02:00
Christian Beikov 171488a762 HHH-18373 Fix NPE when accessing parameter type of JPA Criteria value parameter 2024-08-07 17:13:16 +02:00
Jan Schatteman 46b2739061 HHH-18373 - Add test for binding null as value in Criteria API
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-08-07 17:13:16 +02:00
Andrea Boriero abc4d5ba9e Fix DB2 10.5 test failures 2024-08-07 15:59:07 +02:00
Andrea Boriero a54f067f5e Fix Sybase using jconn driver failures 2024-08-07 15:59:07 +02:00
Jan Schatteman 693516ab92 HHH-17497 - Add test case for issue (testScrollWithoutFetch)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-08-07 15:53:55 +02:00
marko-bekhta a971f897e9 Provide a non-internal empty QueryParameterBindings 2024-08-07 15:52:04 +02:00
Nguyen Nhu Phuc d888f1984c HHH-17847: fix the issue in result set mapping when stored procedure has INOUT param 2024-08-07 15:51:12 +02:00
Nguyen Nhu Phuc bd4c9b4c9b HHH-17847: test to verify the result set mapping when a procedure call has INOUT param 2024-08-07 15:51:12 +02:00
Sebastien Santschi 71a616f2be HHH-18451 Fix CheckConstraints for Booleans with null value converters 2024-08-07 15:10:47 +02:00
Christian Beikov 1f8d6f0339 HHH-18403 Disable returning clause support for updates on DB2 for i 2024-08-07 13:57:34 +02:00
Christian Beikov f12ed1ce2c HHH-18359 Add a wrap parameter rendering mode for Informix 2024-08-07 13:22:12 +02:00