Commit Graph

11793 Commits

Author SHA1 Message Date
Cedomir Igaly 8dbbb40e43 HHH-18218 - Improved type resolving when tuple element implements SqmExpressibleAccessor 2024-06-12 16:06:14 +02:00
Cedomir Igaly f63f15bb4f HHH-18218 - Added test case not using explicit constructor new ConstructorDto(...) 2024-06-12 16:06:13 +02:00
Andrea Boriero 742fc4c60a Improve Sybase and SQLServer blob lob generation 2024-06-12 13:46:07 +02:00
Andrea Boriero 8f9d1a15ad HHH-16094 HHH-17097 MySQL schema generation and validation : tinytext instead of longtext for @Lob 2024-06-12 13:46:07 +02:00
Andrea Boriero 58b5cea899 HHH-16094 Add test for issue 2024-06-12 13:46:07 +02:00
Andrea Boriero 82b47c878e HHH-17097 Add test for issue 2024-06-12 13:46:07 +02:00
Andrea Boriero ab96246684 HHH-18147 Hibernate fails to persist an entity when a natural id association is a proxy 2024-06-12 13:31:13 +02:00
Andrea Boriero aba0c6f9d5 HHH-18147 Add test for issue 2024-06-12 13:31:13 +02:00
Davide D'Alto dbfaa0d4f2 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:02 +02:00
Sanne Grinovero 919eee5377 Keep dependency repository definitions well defined 2024-06-12 09:24:55 +02:00
Vladimír Kuruc 2820e9e03a HHH-18250 Informix multi insert not supported 2024-06-12 00:24:10 +02:00
Andrea Boriero 55ab762dde Upgrade Gradle to 8.8, upgrade checkframework to 0.6.40, fix HibernateProcessor resources creation causing whole tests recompilation 2024-06-11 23:50:36 +02:00
Marco Belladelli 3a58018cc0 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:36 +02:00
Marco Belladelli f9210580d0 HHH-18202 Add test for issue 2024-06-10 15:50:36 +02:00
Christian Beikov a6ffa84db7 HHH-18232 Use change table modifier new and final consistently on DB2 and zOS 2024-06-07 15:03:17 +02:00
Marco Belladelli 696626e5e1 HHH-18218 Account for generics in dynamic instantiation arguments 2024-06-07 13:39:50 +02:00
Marco Belladelli 41360f428c HHH-18218 Add test for issue 2024-06-07 13:39:50 +02:00
Gavin King b1787d9a07 HHH-17804 roll back change to semantics of 'null in ()'
It turns out that SQL databases (IMO wrongly) treat the expression
'null in (select 1 where false)' as false instead of null. And as
of JPA 3.2, we're free to interpret 'null in ()' consistently with
that, which we should do.

So my change made things worse rather than better.

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-06-07 08:29:21 +02:00
Marco Belladelli 81f9818af4 HHH-18121 Replace dynamic instantiations for non-simple count queries 2024-06-06 08:59:55 +02:00
Marco Belladelli 3845df932b HHH-18121 Add test for issue 2024-06-06 08:59:55 +02:00
Marco Belladelli 7fd44d6733 HHH-17959 Apply concrete type to subqueries with single selection 2024-06-04 16:46:44 +02:00
Marco Belladelli 3711e6ea78 HHH-17959 Add test for issue 2024-06-04 16:46:44 +02:00
Vladimír Kuruc a8dde4d40f HHH-18221 Fix for Incomplete list of existing foreign keys - DatabaseMetaData.crossReferences(...) not used 2024-06-04 13:51:28 +02:00
Steve Ebersole 0940c9806b Upgrade XJC plugin to address branch-switch issues
(cherry picked from commit 1861eccc2c)
2024-05-31 12:00:54 -05:00
Marco Belladelli cc67fdef10 HHH-17968 Fix missing CTE processing in subqueries 2024-05-31 15:48:48 +02:00
Marco Belladelli 7ef83da0be HHH-17968 Add test for issue 2024-05-31 15:48:48 +02:00
Marco Belladelli 5708214208
Add missing newline 2024-05-31 13:46:52 +02:00
Marco Belladelli d69115e000
Mark org.hibernate.generator.values as `@Incubating` 2024-05-31 12:54:26 +02:00
Marco Belladelli 7756e5c474
HHH-18151 Backport test to use `BytecodeEnhancerRunner` 2024-05-29 09:42:27 +02:00
Matej Pucihar d53f21a4b4
HHH-18151 Fix lazy loading with generics and inheritance 2024-05-29 09:05:15 +02:00
Matej Pucihar e0217c1d2d
HHH-18151 Add test for issue
Co-authored-by: Marco Belladelli <marcobladel@gmail.com>
2024-05-29 09:05:11 +02:00
Matej Pucihar b7755c7906
HHH-18138 entity graphs must respect concrete generic attribute
Co-authored-by: Marco Belladelli <marcobladel@gmail.com>
2024-05-29 09:04:26 +02:00
Matej Pucihar 1e5d1fdcc0
HHH-18138 Add test for issue 2024-05-29 09:04:22 +02:00
Marco Pelagatti f4d044f63a HHH-18170 Subquery randomly generating wrong SQL due to duplicate alias 2024-05-28 11:24:51 +02:00
Marco Belladelli 61632590a0 HHH-17925 Allow mapping join column on single attribute of composite id 2024-05-28 10:42:12 +02:00
Marco Belladelli 3652897800 HHH-17925 Add test for issue 2024-05-28 10:42:12 +02:00
Marco Belladelli f372748105 HHH-18007 Use correct expressible when checking query result type 2024-05-28 10:42:02 +02:00
marko-bekhta cd60710c92 HHH-18007 Add a testcase for the issue 2024-05-28 10:42:02 +02:00
Gavin King 4f15299807 HHH-18140 Skip optimizeUnloadedDelete if there are POST_COMMIT_DELETE listeners
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-05-27 16:08:03 +02:00
Guenther Demetz 985c6e4001 HHH-16557 Testcase and bugfix proposal (revised by beikov) 2024-05-27 14:35:59 +02:00
Christian Beikov 0985ddecc4 HHH-18027 Clear expansions NonSelectQueryPlan.executeUpdate call 2024-05-27 14:25:39 +02:00
Yanming Zhou 9e519f84a1 HHH-18027 Test mutation query reuse with parameter list expansions 2024-05-27 14:25:39 +02:00
Marco Belladelli 38fa18ad5b HHH-17161 Align `StandardTableGroup` table reference join name checks 2024-05-27 08:51:36 +02:00
Konrad Kügler 39b85e5014 HHH-17161 Add test for issue 2024-05-27 08:51:36 +02:00
Cedomir Igaly 0c0d4d5161 HHH-18117 Proposed solution 2024-05-23 12:44:23 +02:00
Cedomir Igaly 5cf497f3c3 HHH-18117 Test case 2024-05-23 12:44:23 +02:00
Andrea Boriero c073729832 HHH-17943 - Fix for issue 2024-05-22 17:54:09 +02:00
Andrea Boriero 83f723e8c2 HHH-17943 - Add test for issue 2024-05-22 17:54:09 +02:00
Jan Schatteman ab7f95abd7 HHH-17943 - Fix for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-05-22 17:54:09 +02:00
Jan Schatteman a3387a2d85 HHH-17943 - Add test for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-05-22 17:54:09 +02:00
Yanming Zhou 1433423c1b HHH-18073 `BasicCollectionJavaType::wrap` should retain order of `Set` to keep consistent with `deepCopy` 2024-05-21 18:24:46 +02:00
Marco Belladelli 19c42b3942 HHH-18026 Fix SQL Exception for dialects not supporting arbitrary keys 2024-05-20 08:46:36 +02:00
Marco Belladelli c23d75cd76 HHH-18026 Add test for issue 2024-05-20 08:46:36 +02:00
Yoann Rodière dfbb72abe6 HHH-18112 Fix and test default version handling for non-Oracle dialects 2024-05-15 11:54:35 +02:00
Yoann Rodière 32d4f1596e HHH-18080 Fix default version handling in dialects when not using JDBC metadata
* Use the minimum supported version instead of '0.0.0'
* Don't warn about version '0.0.0'
2024-05-10 10:48:40 -05:00
Yoann Rodière 73edbac469 HHH-18079 Default to minimum supported DB version in more cases
In particular when using hibernate.boot.allow_jdbc_metadata_access=false with jakarta.persistence.database-product-name
2024-05-10 10:48:40 -05:00
Sanne Grinovero b98ee83b8d HHH-18094 Bytebuddy enhancer: make better use of constants and memory 2024-05-10 10:01:12 +01:00
Marco Belladelli e7d32c0365
Fix Oracle test missing order by expression in select distinct 2024-05-07 11:11:43 +02:00
Christian Beikov 23fecb110d HHH-17421 Ensure that no follow-on locking happens on SQL Server and Sybase ASE 2024-05-07 08:17:29 +02:00
Simon StJohn-Green 604c896529 HHH-17421 Test that no follow-on locking happens on SQL Server and Sybase ASE 2024-05-07 08:17:28 +02:00
Christian Thiel 5698af3917 HHH-17305 Test and fix for keeping order of tables in polymorphic queries 2024-05-06 17:49:36 +02:00
Christian Beikov 459c6f427a HHH-17385 Missing table for superclass when joining subclass association 2024-05-06 16:23:10 +02:00
Andrea Boriero 92aef4a1ae HHH-18032 CompositeId, when the id assigned by PrePersist method an HibernateException: identifier of an instance of _ was altered is thrown 2024-05-06 14:52:04 +02:00
Andrea Boriero 098fdbd374 HHH-18032 Add test for issue 2024-05-06 14:52:04 +02:00
Marco Belladelli e8252cb4a8 HHH-17827 Fix check for Map dynamic entity classes 2024-05-06 14:29:14 +02:00
Marco Belladelli bb88d3244b HHH-17827 Add test for issue 2024-05-06 14:29:14 +02:00
Marco Belladelli 08c2a5479d HHH-17834 Force version increment for the correct inheritance table 2024-05-06 14:27:13 +02:00
Marco Belladelli d977b40598 HHH-17834 Add test for issue 2024-05-06 14:27:13 +02:00
Christian Beikov 19c2c40f82 HHH-18046 Fix Hana issue with binary arithmetic parameter operand and skip test for cockroach 2024-05-06 12:15:00 +02:00
Marco Belladelli 9ba0dd7af0 HHH-17837 Render target-side key for explicit plural joins when needed
Also, change how we determine whether we need to use the target-side to only the strictly needed cases (non-optimizable joins, `group by` or `order by` clauses)
2024-05-03 08:48:24 +02:00
Marco Belladelli b2f1725520 HHH-17837 Add test for issue 2024-05-03 08:48:24 +02:00
Christian Beikov 0b1ad4e410 HHH-18046 Cast parameters used as arithmetic operands on DB2 2024-05-02 18:19:16 +02:00
Christian Beikov d5da60da1c HHH-18018 Use NO_PLAIN_PARAMETER for Derby functions that use the length function 2024-05-02 10:28:13 +02:00
Sanne Grinovero f379ae0652 HHH-18011 Extract reusable constants from EnhancerImpl 2024-05-01 12:00:04 +01:00
Sanne Grinovero aff789cd90 HHH-18011 Extract DefaultEnhancerClassFileLocator and allow using a different implementation 2024-05-01 12:00:04 +01:00
Christian Beikov 4b172ed843 HHH-18036 Truncate time-related milliseconds when creating a java.sql.Date 2024-05-01 00:09:03 +02:00
Andrea Boriero b5b40f272a HHH-17964 Hibernate using wrong column order for ElementCollection query when composite ID is present 2024-04-25 09:59:17 +02:00
Andrea Boriero 96793faa47 HHH-17964 Add test for issue 2024-04-25 09:59:17 +02:00
Gavin King 84cdd7c93f slightly improve format of error message
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-24 23:28:54 +02:00
Marco Belladelli 9346c28c8e HHH-17983 Remove entity keys from batch queue before loading 2024-04-24 11:37:57 +02:00
Marco Belladelli c846bc3ec2 HHH-17983 Add test for issue 2024-04-24 11:37:57 +02:00
Marco Belladelli 205197bdf4 HHH-17883 Correct original column order for primary keys 2024-04-24 11:36:50 +02:00
Marco Belladelli 00d5f2f9e6 HHH-17883 Add test for issue 2024-04-24 11:36:50 +02:00
Sanne Grinovero a76a314586 HHH-17993 Metamodel processing on bootstrap: avoid retrying same metamodel class name multiple times 2024-04-23 17:35:04 +01:00
Sanne Grinovero c1dca9879f HHH-17991 Reduce overhead from @DialectOverride discovery 2024-04-23 17:35:04 +01:00
Sanne Grinovero bfd0a29e95 HHH-17988 MetadataContext should consistently use ClassLoaderService 2024-04-23 17:35:04 +01:00
Sanne Grinovero 6f8545f1a5 HHH-17987 Improve allocation rate of ReflectHelper#setterMethodOrNull 2024-04-23 17:35:04 +01:00
Sanne Grinovero cf5d09cc76 HHH-17980 Excessive contention during getter identification in the ByteBuddy enhancer 2024-04-23 17:35:04 +01:00
Christian Beikov 63551906d8 Fix HANA dialect doesRoundTemporalOnOverflow 2024-04-23 18:00:01 +02:00
Christian Beikov 94bade568a Fix SybaseASEDialect column length resolution 2024-04-23 17:07:59 +02:00
Gavin King 06139cf5da HHH-17999 use Supplier instead of Constructor
this is quite a lot cleaner

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 16:23:01 +02:00
Gavin King abbfa5333e HHH-17999 use Constructor<Expectation> instead of Class<Expectation>
for Quarkus

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 16:23:01 +02:00
Andrea Boriero 97a15ae194 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:13 +02:00
Andrea Boriero 4eb542872a HHH-17965 Add test for issue 2024-04-23 13:51:13 +02:00
Gavin King 122a659776 add an example to jdoc of SS.fetch()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King daa99ab11b HHH-17955 Javadoc improvements in StatelessSession
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King e0e603a072 talk about lock() and refresh() in javadoc preamble for Session
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King 5948ad1245 two minor improvements to javadoc
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King a5b8a39d54 make javadoc consistent
yes, these methods actually do still accept detached objects
as of today, but that's already deprecated and we're going to
turn it off in the future

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King 082e47efb7 HHH-17953 fix StatelessSession.fetch() for empty collection
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00