12004 Commits

Author SHA1 Message Date
Gavin King
d4593b00ce very minor
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-25 23:03:55 +02:00
Gavin King
5645b3440a HHH-18301 DB2 LUW supports DROP TABLE IF EXISTS since 11.5
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-25 23:03:55 +02:00
Gavin King
f947927234 HHH-18288 @Index specified by subclass in SINGLE_TABLE inheritance
I'm definitely not a fan of @Table annotations on subclasses in SINGLE_TABLE
hierarchies. However, unfortunately we've already decided to tolerate it.

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-21 11:55:20 +02:00
Gavin King
2b62eaa058 HHH-18158, HHH-18251, HHH-18062 fix composite id handling
by rolling back HHH-15184

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-14 15:34:06 +02:00
Marco Belladelli
b3d01730ce HHH-18259 Fix check for generated properties for root table only 2024-06-14 10:22:28 +02:00
Marco Belladelli
24dd943c7b HHH-18259 Add test for issue 2024-06-14 10:22:28 +02:00
Dmitry Kryukov
d53c9aa7cd HHH-18118 fixed comparison of class field with itself 2024-06-14 09:33:36 +02:00
Dmitry Kryukov
ebaba54a83 HHH-18122 removed check of the arg type for private classes 2024-06-14 09:28:59 +02:00
Dmitry Kryukov
2b965f6c65 HHH-18122 added check of the arg type into equals() 2024-06-14 09:28:59 +02:00
Marco Belladelli
638466fa8c
HHH-18212 Small cleanups to transient check logic 2024-06-14 09:23:09 +02:00
Gavin King
8686392afe clean up logic in CHECK_ON_FLUSH
so that it's more readable/understandable

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-13 23:39:29 +02:00
Gavin King
6f58c5e2f6 minor cleanups in Dialect
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-13 23:39:29 +02:00
Gavin King
505e64b19a HHH-18016 change ArgumentTypesValidator to delegate to the JdbcType
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-13 21:59:53 +02:00
Marco Belladelli
27bbdfc839 HHH-18212 Setting to control transient check strictness for unowned associations 2024-06-13 18:06:09 +02:00
Marco Belladelli
055570c8af HHH-18212 Fix transient check for entities deleted during the same flush 2024-06-13 18:06:09 +02:00
Marco Belladelli
52a539d727 HHH-18212 Add test for issue 2024-06-13 18:06:09 +02:00
Andrea Boriero
a567226a72 HHH-17956 Criteria multiselect ignores type of the criteria query and always returns list of Object[] 2024-06-13 11:21:54 +02:00
Andrea Boriero
f5062b2aef HHH-17956 Add test for issue 2024-06-13 11:21:54 +02:00
Jan Schatteman
9c4baed5ae HHH-10162 - Add test
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-06-13 10:18:14 +02:00
Jan Schatteman
9da230a616 HHH-12885 - Add test
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-06-13 10:18:14 +02:00
Jan Schatteman
223328ff2f HHH-12752 - Add test
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-06-13 10:18:14 +02:00
Marco Belladelli
2772a9d6fb HHH-18218 - Fix possible null pointer 2024-06-12 16:15:28 +02:00
Cedomir Igaly
4c8e72c5ec HHH-18218 - Improved type resolving when tuple element implements SqmExpressibleAccessor 2024-06-12 16:05:27 +02:00
Cedomir Igaly
9e13bd0c48 HHH-18218 - Added test case not using explicit constructor new ConstructorDto(...) 2024-06-12 16:05:27 +02:00
LLEFEVRE
c2d0763b64 HHH-18220 Detect if Application Continuity is enabled for Oracle dialect 2024-06-12 16:03:44 +02:00
LLEFEVRE
7c711751dd HHH-18220 Detect if Application Continuity is enabled for Oracle dialect 2024-06-12 16:03:44 +02:00
Gavin King
58e814965e improvements to filter-related javadoc
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-12 13:57:39 +02:00
Andrea Boriero
8663136608 Improve Sybase and SQLServer blob lob generation 2024-06-12 13:36:59 +02:00
Andrea Boriero
55eea3d0df HHH-16094 HHH-17097 MySQL schema generation and validation : tinytext instead of longtext for @Lob 2024-06-12 13:36:59 +02:00
Andrea Boriero
5b9057e2ed HHH-16094 Add test for issue 2024-06-12 13:36:59 +02:00
Andrea Boriero
eaa94b1305 HHH-17097 Add test for issue 2024-06-12 13:36:59 +02:00
Andrea Boriero
357be627e2 HHH-18147 Hibernate fails to persist an entity when a natural id association is a proxy 2024-06-12 13:30:27 +02:00
Andrea Boriero
f87cecee0e HHH-18147 Add test for issue 2024-06-12 13:30:27 +02:00
Davide D'Alto
26f6cdab03 HHH-18254 Change NativeQueryImpl#createCountQueryPlan scope to protected
So that I can re-use the code when implementing ReactiveSelectQueryPlan#getReactiveResultsCount in Hibernate Reactive
2024-06-12 13:20:44 +02:00
Christian Beikov
f7093239d9 HHH-18125 Fix type of embeddable discriminator paths and type literals
Build and store the embeddable discriminator type in the Component. Also, change the type of entity/embeddable type literals to the discriminator type (or `Class` when not polymorphic).
2024-06-12 13:18:03 +02:00
Christian Beikov
e2f7d5d516 HHH-16830 Custom exception handling for applyToLoadByKey associations 2024-06-12 12:19:33 +02:00
Christian Beikov
d22725a678 HHH-16830 Add applyToLoadByKey filters also to to-one join predicates 2024-06-12 12:19:33 +02:00
Christian Beikov
be8705f317 HHH-16830 Ensure filters applied for by key lookups don't mess with to-one associations 2024-06-12 12:19:33 +02:00
Dmitrii Karmanov
4125902eea HHH-16830: change the naming 2024-06-12 12:19:33 +02:00
Dmitrii Karmanov
af778c4eba HHH-16830: fix checkstyle indents 2024-06-12 12:19:33 +02:00
Dmitrii Karmanov
b20680dbd8 HHH-16830: fix checkstyle in tenant binder 2024-06-12 12:19:33 +02:00
Dmitrii Karmanov
e721a37691 HHH-16830: apply filters to find() method 2024-06-12 12:19:33 +02:00
Sanne Grinovero
0a19854ae2 Keep dependency repository definitions well defined 2024-06-12 09:23:20 +02:00
Vladimír Kuruc
aa9f3d091c HHH-18250 Informix multi insert not supported 2024-06-12 00:26:07 +02:00
Andrea Boriero
8166086957 Upgrade Gradle to 8.8, upgrade checkframework to 0.6.40, fix HibernateProcessor resources creation causing whole tests recompilation 2024-06-11 23:46:57 +02:00
Steve Ebersole
d1c80e1462 HHH-17829 - [MySQL] Schema-validation: wrong column type encountered in column [activated] in table [jhi_user]; found [tinyint (Types#TINYINT)], but expecting [bit (Types#BOOLEAN)]
Test that using `hibernate.type.preferred_boolean_jdbc_type` allows successful validation
2024-06-11 07:49:50 -05:00
Steve Ebersole
45ea24d102 HHH-17829 - [MySQL] Schema-validation: wrong column type encountered in column [activated] in table [jhi_user]; found [tinyint (Types#TINYINT)], but expecting [bit (Types#BOOLEAN)]
Test that using `hibernate.type.preferred_boolean_jdbc_type` allows successful validation
2024-06-11 07:49:50 -05:00
Christian Beikov
0663f811ff HHH-18256 Don't prefix literal type prefix in SQL fragments 2024-06-11 14:42:48 +02:00
Marco Belladelli
c08b1b9bf1 HHH-18202 Fix group/order by fk rendering handling nested paths
Introduced generalized `MetadataKey`-based resolutions with caching in `BaseSqmToSqlAstConverter`
2024-06-10 15:50:32 +02:00
Marco Belladelli
01199d2c1f HHH-18202 Add test for issue 2024-06-10 15:50:32 +02:00