Commit Graph

18936 Commits

Author SHA1 Message Date
Jan Schatteman 75885b9dd1 HHH-18739 - Fix for hints in queries containing joins
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-10-18 23:43:06 +02:00
Christian Beikov db24cf11c5 HHH-18730 Multi-column association in aggregate component doesn't work 2024-10-18 12:57:18 +02:00
Christian Beikov 74501850cb Update to Jakarta Persistence TCK version 3.1.6 2024-10-17 18:24:11 +02:00
Andrea Boriero ba88d7cf84 HHH-18289 with leads to HibernateException: A collection with cascade= was no longer referenced by the owning entity instance 2024-10-17 13:55:15 +02:00
Andrea Boriero 8eae372ab8 HHH-18389 Add test for issue 2024-10-17 13:55:15 +02:00
Andrea Boriero 4100ee04c3 HHH-18712 Warning about attempts to update an immutable entity for normal (not immutable) entity 2024-10-17 13:36:05 +02:00
Andrea Boriero 80bbea4283 HHH-18131 Composite identifiers with associations stopped working with @IdClass 2024-10-15 11:36:25 +02:00
Andrea Boriero 3aae473eca HHH-18131 Add test for issue 2024-10-15 11:36:25 +02:00
Andrea Boriero 122d1806c7 HHH-18681 InterpretationException executing subquery in case-when : o.h.query.sqm.tree.select.SqmSelection.getExpressible() is null 2024-10-15 11:33:16 +02:00
Andrea Boriero 1e4b1137ac HHH-18681 Add test for issue 2024-10-15 11:33:16 +02:00
Jan Schatteman d702496e4d HHH-18669 - resolve the driver name from the connection metadata, in case it wasn't explicitly set and access to the database metadata is allowed
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-10-09 16:21:50 +02:00
Christian Beikov 2d13afb511 HIB-57 Re-enable testing of IBM DB2 10.5 in Hibernate ORM 2024-10-09 12:44:06 +02:00
Gavin King e9223cb984 finally sort out handling of @Id and @Version in query validator
also remove 'this' hacks made obsolete by Steve's work on core
2024-10-05 08:26:47 +02:00
Gavin King d0295473b2 fix uppercasing of names in processor to comply with JPA 3.2 spec 2024-10-04 19:35:07 +02:00
Gavin King 86824040ec respect @Nonnull annotation on @Find method parameters 2024-10-04 19:35:07 +02:00
Gavin King dec1eae54a fix a bug in generation of @Find method for @NaturalId fields
StatelessSession does not have a byNaturalId() method
2024-10-04 19:35:07 +02:00
Gavin King 938f592982 HHH-18667 attempt to fix by making TypeConfiguration nonstatic 2024-10-04 19:35:07 +02:00
Marco Belladelli cda7dad83b HHH-18450 Handle array result types for multi-valued parameters
Also fix an NPE in SqmSelectionQueryImpl#determineResultType
2024-10-04 16:37:59 +02:00
Marco Belladelli 46293dbde4 HHH-18450 Add test for issue 2024-10-04 16:37:59 +02:00
Jan Schatteman acfc79303c HHH-13547 - remove logging of BatchImpl rethrown exceptions
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-10-04 16:26:47 +02:00
Manuel Siggen 3f9c364232 HHH-18491 Do no try to resume non-existant transaction in doInSuspendedTransaction. 2024-10-04 12:32:25 +02:00
Christian Beikov 5a04c37edc HHH-18645 Handle proxies when resolving from existing entity in batch initializer 2024-10-04 12:28:19 +02:00
Leon Schenk eaf0ba3aee HHH-18675: Revert to java 11 2024-10-04 10:15:58 +02:00
Leon Schenk 83ec629ed1 HHH-18675: Changed license to 6.6 version
(cherry picked from commit 0a1a9f757d)

# Conflicts:
#	hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java
2024-10-04 10:15:58 +02:00
Leon Schenk fe7fc9bf9f HHH-18675: Fix for testcase. If property is 'synthetic' then create no attribute for the jpa model.
(cherry picked from commit bc4804ab09)
2024-10-04 10:15:58 +02:00
Leon Schenk 907fbe09d9 HHH-18675: Testcase added to Hibernate Project includes a reference testcase without generics.
(cherry picked from commit fcba4ed25d)
2024-10-04 10:15:58 +02:00
Marco Belladelli e9d3ce0def HHH-18321 Avoid search for table group when possible for paths 2024-10-03 10:58:31 +02:00
Marco Belladelli f977dc343c HHH-18321 Add test for issue 2024-10-03 10:58:31 +02:00
Christian Bürgi 4119e44d1a HHH-18513 fix wrong prePartialFlush calculation in Session Metrics log 2024-10-03 10:51:43 +02:00
Yanming Zhou 8870ab897b HHH-18575 Fix IllegalStateException while passing multi-valued BigDecimal as parameter
Fix
```
java.lang.IllegalStateException: Binding is multi-valued; illegal call to #getBindValue

	at org.hibernate.query.internal.QueryParameterBindingImpl.getBindValue(QueryParameterBindingImpl.java:100)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.resolveSqmParameter(BaseSqmToSqlAstConverter.java:6283)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.consumeSqmParameter(BaseSqmToSqlAstConverter.java:5861)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.consumeSingleSqmParameter(BaseSqmToSqlAstConverter.java:5950)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.processInSingleParameter(BaseSqmToSqlAstConverter.java:8178)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.processInSingleHqlParameter(BaseSqmToSqlAstConverter.java:8135)
	at org.hibernate.query.sqm.sql.BaseSqmToSqlAstConverter.processInListWithSingleParameter(BaseSqmToSqlAstConverter.java:8124)
```
2024-10-02 18:01:33 +02:00
Yanming Zhou e3a36d7ce2 HHH-18575 Add test for issue 2024-10-02 18:01:33 +02:00
Réda Housni Alaoui 4a66035fea HHH-18658 Inner join prevents finding an entity instance referencing an empty map 2024-10-02 16:29:35 +02:00
Marco Belladelli fc2ba3d5fd
Fix checkstyle failures due to new-format headers 2024-10-02 10:26:42 +02:00
Steve Ebersole d94a2a7ea9 HHH-18545 - Document "characteristics" of settings
(cherry picked from commit 4f9035e9f8)
2024-09-30 09:50:30 -05:00
Andrea Boriero b5ff96da92 HHH-18608 NPE in EntityInitializerImpl.resolveInstanceSubInitializers 2024-09-30 15:47:24 +02:00
Andrea Boriero b6c776150a HHH-18608 Add test for issue 2024-09-30 15:47:24 +02:00
Andrea Boriero a93e0a7754 HHH-18409 byte[] instance variables annotated with @NaturalId cannot be found with a natural ID query 2024-09-26 16:51:40 +02:00
Andrea Boriero c7e17aebab HHH-18409 Add test for issue 2024-09-26 16:51:40 +02:00
Andrea Boriero fc1d380415 HHH-18631 AssertionError when loading an entity after removing another, associated entity 2024-09-26 13:32:09 +02:00
Andrea Boriero c301ac85d2 HHH-18631 Add test for issue 2024-09-26 13:32:09 +02:00
Steve Ebersole 67b5784b58 HHH-18654 - Change setting docs to use an asciidoc section per setting 2024-09-24 17:36:39 -05:00
Marco Belladelli 735f066c3d HHH-18642 Revert to Statement.RETURN_GENERATED_KEYS for identity only 2024-09-24 15:04:54 +02:00
Steve Ebersole 0c8ac1c6e3 HHH-18640 - Add note to migration guide about @Table and subclasses 2024-09-23 14:21:50 -05:00
Andrea Boriero 67fbc97b07 HHH-18628 Regression: Unable to determine TableReference 2024-09-23 17:36:19 +02:00
Andrea Boriero d0d7438970 HHH-18628 Add test for issue 2024-09-23 17:36:19 +02:00
Marco Belladelli c9bc3dcd45 HHH-18582 Throw explicit error when trying to map nested arrays 2024-09-23 11:16:11 +02:00
Marco Belladelli a34fb6ef08 HHH-18582 Add test for issue 2024-09-23 11:16:11 +02:00
Gavin King e3e7db0c68 HHH-17739 add tests 2024-09-23 11:16:11 +02:00
Gavin King 1e5eaaf50d HHH-17739 fix NPE for field with unsupported collection type
cleanups and warning fixes in TypeConfiguration and BasicValue
2024-09-23 11:16:11 +02:00
Andrea Boriero df8981f53f Fixed changelog.txt 2024-09-23 10:10:20 +02:00