Commit Graph

11458 Commits

Author SHA1 Message Date
Christian Beikov 40a9b9d725 HHH-18410 Hoist some state to AbstractAttributeMapping to avoid megamorphic call sites 2024-08-06 11:49:08 +02:00
Christian Beikov 73af6a0b75 HHH-18410 Make use of getter/setter cache as much as possible 2024-08-06 11:49:08 +02:00
Christian Beikov 8436326fc5 HHH-17949 Fix upsert handling when optimistic locking is involved 2024-08-06 11:49:08 +02:00
Gavin King 0ce4f3c083 HHH-17934 limit test to databases with proper MERGE support for now
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-06 11:49:08 +02:00
Gavin King 909a8b0b4a HHH-17934 sort out version handling in upsert()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-06 11:49:08 +02:00
Gavin King ef0cc752c6 HHH-17934 generate a correct SQL merge statement
(adds the version check if necessary)

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-06 11:49:08 +02:00
Gavin King 306e59bc74 HHH-17934 test demonstrating bug
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-08-06 11:49:08 +02:00
Andrea Boriero d1313b677b HHH-18338 o.h.UnknownEntityTypeException: Unable to locate persister thrown when an embeddable object is loaded before the entity it references 2024-08-06 11:49:08 +02:00
Andrea Boriero d363a188ab HHH-18338 Add test for issue 2024-08-06 11:49:08 +02:00
Christian Beikov 3d483887c1 HHH-18352 Don't emulate tuple comparison with subquery if possible 2024-08-06 11:49:08 +02:00
imunic 1d87db4e4f HHH-17840 Fix inconsistency of read/write null JsonNode/JsonValue 2024-08-06 11:49:08 +02:00
Marco Belladelli c972208fbc HHH-18272 Check for `SqmAliasedNodeRef` when collecting group/order by 2024-08-06 11:49:08 +02:00
Marco Belladelli 5e4c35441c HHH-18272 Add test for issue 2024-08-06 11:49:08 +02:00
Marco Belladelli d8c9f9dba9 HHH-17837 HHH-18202 Backport fk rendering-side logic for associations in order/group by 2024-06-11 15:39:10 +02:00
Marco Belladelli 4772073a54 HHH-18202 Add test for issue 2024-06-11 15:39:10 +02:00
Marco Belladelli f7cb6c1fb0 HHH-17837 Add test for issue 2024-06-11 15:39:10 +02:00
Marco Pelagatti 3790c19ccc HHH-18170 Subquery randomly generating wrong SQL due to duplicate alias 2024-06-11 15:39:10 +02:00
Marco Belladelli 1919409ffc HHH-18007 Use correct expressible when checking query result type 2024-06-11 15:39:10 +02:00
marko-bekhta 433fbe9185 HHH-18007 Add a testcase for the issue 2024-06-11 15:39:10 +02:00
Gavin King f0d5cf789a HHH-18140 Skip optimizeUnloadedDelete if there are POST_COMMIT_DELETE listeners
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-11 15:39:10 +02:00
Guenther Demetz ece64c75fd HHH-16557 Testcase and bugfix proposal (revised by beikov) 2024-06-11 15:39:10 +02:00
Andrea Boriero f44332ccfb HHH-17943 - Fix for issue 2024-06-11 15:39:10 +02:00
Andrea Boriero a559dd243b HHH-17943 - Add test for issue 2024-06-11 15:39:10 +02:00
Jan Schatteman 7389e5f9d4 HHH-17943 - Fix for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-06-11 15:39:10 +02:00
Jan Schatteman d64b9566b8 HHH-17943 - Add test for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-06-11 15:39:10 +02:00
Marco Belladelli 3570d9b451 Fix Oracle test missing order by expression in select distinct 2024-06-11 15:39:10 +02:00
Christian Beikov 4e1be36110 HHH-18027 Clear expansions NonSelectQueryPlan.executeUpdate call 2024-06-11 15:39:10 +02:00
Yanming Zhou d7566d8a59 HHH-18027 Test mutation query reuse with parameter list expansions 2024-06-11 15:39:10 +02:00
Andrea Boriero 82c2186363 HHH-18032 CompositeId, when the id assigned by PrePersist method an HibernateException: identifier of an instance of _ was altered is thrown 2024-06-11 15:39:10 +02:00
Andrea Boriero 2af8e2024c HHH-18032 Add test for issue 2024-06-11 15:39:10 +02:00
Christian Beikov 7a41b2a594 HHH-18036 Truncate time-related milliseconds when creating a java.sql.Date 2024-06-11 15:39:10 +02:00
Jan Schatteman 03e589ef0d HHH-17967
- Add test for issue (already fixed on main)
  - Backport the minimal necessary bits of HHH-16931 and
    https://github.com/hibernate/hibernate-orm/pull/7883 to fix the NPE

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-04-25 14:36:32 +02:00
Andrea Boriero 2811aad839 HHH-17964 Hibernate using wrong column order for ElementCollection query when composite ID is present 2024-04-25 09:59:31 +02:00
Andrea Boriero 2b4ec1fb8c HHH-17964 Add test for issue 2024-04-25 09:59:31 +02:00
Andrea Boriero ceb4d060da HHH-17965 @ElementCollection with @CollectionTable throws o.h.MappingException Foreign key must have same number of columns as the referenced primary key 2024-04-23 13:51:16 +02:00
Andrea Boriero f46f0c4701 HHH-17965 Add test for issue 2024-04-23 13:51:16 +02:00
Christian Beikov 488cdd9559 HHH-17884 Fix the enum value sorting for EnumeratedType.STRING enums 2024-04-19 13:04:05 +02:00
Marco Belladelli 781888e974 HHH-17916 Check type is resolved before building generic property 2024-04-19 12:40:49 +02:00
Marco Belladelli 21583a266e HHH-17916 Add test for issue 2024-04-19 12:40:49 +02:00
Christian Beikov abea1bf23d HHH-17947 Bidirectional association management shouldn't ignore maintaining inverse lazy objects 2024-04-12 13:29:32 +02:00
Christian Beikov 2b4003c506 HHH-17947 Add additional test for unique key loading 2024-04-12 13:29:32 +02:00
Jan Schatteman 3f3181d729 HHH-17947 - Add test for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-04-12 13:29:32 +02:00
Marco Belladelli 4cc15d4297 HHH-17832 Register projection usage for circular bidirectional fetch 2024-04-11 16:33:19 +02:00
Marco Belladelli e765929e6a HHH-17832 Add test for issue 2024-04-11 16:33:19 +02:00
Andrea Boriero 2bfa6df7cc HHH-17887 Release mode After Statment with deferred result set access does not work 2024-04-09 07:47:00 +02:00
Andrea Boriero 638b5c7394 HHH-17887 Add test for issue 2024-04-09 07:47:00 +02:00
Andrea Boriero 239014db35 HHH-17826 ResultSet closed while scrolling results 2024-04-08 16:27:18 +02:00
Andrea Boriero 27a9ec209e HHH-17826 Add test for issue 2024-04-08 16:27:18 +02:00
Marco Belladelli b300b9d45a HHH-17857 Use `fromNameExact` when determining actual table group 2024-04-08 16:17:26 +02:00
Marco Belladelli 8277ae8ccd HHH-17857 Add test for issue 2024-04-08 16:17:26 +02:00