Skip to content

Commit d573ba8

Browse files
Build(deps): Bump hibernate.version from 7.2.6.Final to 7.3.1.Final (#1685)
Bumps `hibernate.version` from 7.2.6.Final to 7.3.1.Final. Updates `org.hibernate.orm:hibernate-core` from 7.2.6.Final to 7.3.1.Final <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/releases">org.hibernate.orm:hibernate-core's releases</a>.</em></p> <blockquote> <h2>Release 7.3.1</h2> <h1>Hibernate ORM 7.3.1.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.1.Final.</p> <p>You can find the full list of 7.3.1.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.1">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <p>For additional details, see:</p> <ul> <li>the <a href="https://hibernate.org/orm/releases/7.3/">release page</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/introduction/html_single/">Introduction Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/userguide/html_single/">User Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/javadocs">API docs</a></li> </ul> <p>See also the following resources related to supported APIs:</p> <ul> <li>the <a href="https://hibernate.org/community/compatibility-policy/">compatibility policy</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/incubating/incubating.txt">incubating API report</a> (<code>@Incubating</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/deprecated/deprecated.txt">deprecated API report</a> (<code>@deprecated</code> + <code>@remove</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/internals/internal.txt">internal API report</a> (internal packages, <code>@internal</code>)</li> </ul> <p>Visit the <a href="https://hibernate.org/community/">website</a> for details on getting in touch with us.</p> <h2>Release 7.3.0</h2> <h1>Hibernate ORM 7.3.0.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.0.Final.</p> <p>You can find the full list of 7.3.0.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.0">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/blob/7.3.1/changelog.txt">org.hibernate.orm:hibernate-core's changelog</a>.</em></p> <blockquote> <h2>Changes in 7.3.1.Final (April 10, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/38285">https://hibernate.atlassian.net/projects/HHH/versions/38285</a></p> <p>** Bug * HHH-20326 ClassCastException when joining array within embeddable * HHH-20287 DataException ( Parameter is not set) when updating only the version of an Entity with a PartitionKey * HHH-20283 key-based pagination appears to be broken * HHH-20281 Missing temporal precision for parameter coercion leading to ClassCastException * HHH-20274 Avoid mutating SqmSelectClause during type validation * HHH-20273 Failed to set List type field in Embeddable record * HHH-20272 JDBC locking pre-actions are not executed before the statement * HHH-20271 SybaseASE reports wrong lock metadata * HHH-20267 Hibernate processor: infinite generation of repositories when extending PanacheRepository * HHH-20266 Some unnesting array functions miss ordering on index on aggregation * HHH-20260 Session#find only logs LockTimeoutException instead of throwing it on PostgreSQL * HHH-20259 DdlTypeRegistry#addSqlType doesn't handle different type codes registered to same DDL type properly * HHH-20251 NPE: query with fetch graph and read-only hint on bytecode enhanced entities * HHH-20231 Errors when querying 2L-cached native queries with same SQL but different result type * HHH-20230 [Metamodel Generator] AnnotationMetaEntity fails to compile repository methods with unbounded wildcard Sort&lt;?&gt; * HHH-20209 Race Condition in JavaTypeRegistry causing SemanticException during parallel UNION queries with projection. * HHH-20126 NPE when querying with a lockMode/lockScope * HHH-20053 HQL grammar ambiguity for NOT keyword * HHH-19885 Wrong mapping of legacy XML &quot;access&quot; attribute in HbmXmlTransformer * HHH-19818 NPE with stateless insert when Envers is enabled * HHH-19429 ConcurrentModificationException observed while executing JPQL update query with VERSIONED clause * HHH-12986 ConfigLoader does not close file when loading hibernate.cfg.xml * HHH-12590 Postgres subselect: ERROR: subquery in FROM must have an alias</p> <p>** Improvement * HHH-20256 Make ByteBuddy class generation build-reproducible * HHH-20227 Avoid using reflection and parsing annotations when initializing the Hibernate and JPA annotation descriptors</p> <p>** Task * HHH-20311 Upgrade to hibernate-modules 1.1.1 * HHH-20301 Upgrade ByteBuddy to 1.18.8 * HHH-20232 Update c3p0 to 0.12.0</p> <h2>Changes in 7.3.0.Final (March 16, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/37673">https://hibernate.atlassian.net/projects/HHH/versions/37673</a></p> <p>** Bug * HHH-20253 ClassCastException when using hibernate-enhance-maven-plugin plugin * HHH-20229 logFlushResults ko with a <a href="https://github.com/AnyKeyJavaClass"><code>@​AnyKeyJavaClass</code></a>(String.class) * HHH-20224 Exception when calling treat() twice</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hibernate/hibernate-orm/commit/bc279526ae876e0212536b82444bed0fab6f7a82"><code>bc27952</code></a> [Jenkins release job] Preparing release 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/ff58198de86ce8c21e4b6cd30df1cd03451d80ed"><code>ff58198</code></a> [Jenkins release job] changelog.txt updated by release build 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/4f4d466be43643612cf3ca1447019c3d5f2c770b"><code>4f4d466</code></a> HHH-20326 Fix ClassCastException when joining array within embeddable</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6c3203267afa193fc9a1d7886d31be96fdcb88fb"><code>6c32032</code></a> HHH-19885 Wrong mapping of legacy XML access attribute in HbmXmlTransformer</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/5daee8dcb806fd1747f543334fe6cda845f549a4"><code>5daee8d</code></a> Enable automated maintenance releases</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6b33f2f7d501d153660954f4e51a908ac0c6e377"><code>6b33f2f</code></a> HHH-20301 Upgrade ByteBuddy to 1.18.8</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/e5bfdd7f50c27656afd800a877aa7edc277c9765"><code>e5bfdd7</code></a> HHH-20311 Upgrade <code>hibernate-models</code> to 1.1.1</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/cbbdc4faaeee071d8878bf9d0ded3d39cf92e1bf"><code>cbbdc4f</code></a> Make database version part of task inputs to avoid skipping tests with same d...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/85205304cdd0744c281d6290945916f9013574ad"><code>8520530</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/95de1b6e287e77a820cab33ee82d79591f7cc481"><code>95de1b6</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li>Additional commits viewable in <a href="https://github.com/hibernate/hibernate-orm/compare/7.2.6...7.3.1">compare view</a></li> </ul> </details> <br /> Updates `org.hibernate.orm:hibernate-envers` from 7.2.6.Final to 7.3.1.Final <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/releases">org.hibernate.orm:hibernate-envers's releases</a>.</em></p> <blockquote> <h2>Release 7.3.1</h2> <h1>Hibernate ORM 7.3.1.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.1.Final.</p> <p>You can find the full list of 7.3.1.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.1">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <p>For additional details, see:</p> <ul> <li>the <a href="https://hibernate.org/orm/releases/7.3/">release page</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/introduction/html_single/">Introduction Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/userguide/html_single/">User Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/javadocs">API docs</a></li> </ul> <p>See also the following resources related to supported APIs:</p> <ul> <li>the <a href="https://hibernate.org/community/compatibility-policy/">compatibility policy</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/incubating/incubating.txt">incubating API report</a> (<code>@Incubating</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/deprecated/deprecated.txt">deprecated API report</a> (<code>@deprecated</code> + <code>@remove</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/internals/internal.txt">internal API report</a> (internal packages, <code>@internal</code>)</li> </ul> <p>Visit the <a href="https://hibernate.org/community/">website</a> for details on getting in touch with us.</p> <h2>Release 7.3.0</h2> <h1>Hibernate ORM 7.3.0.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.0.Final.</p> <p>You can find the full list of 7.3.0.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.0">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/blob/7.3.1/changelog.txt">org.hibernate.orm:hibernate-envers's changelog</a>.</em></p> <blockquote> <h2>Changes in 7.3.1.Final (April 10, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/38285">https://hibernate.atlassian.net/projects/HHH/versions/38285</a></p> <p>** Bug * HHH-20326 ClassCastException when joining array within embeddable * HHH-20287 DataException ( Parameter is not set) when updating only the version of an Entity with a PartitionKey * HHH-20283 key-based pagination appears to be broken * HHH-20281 Missing temporal precision for parameter coercion leading to ClassCastException * HHH-20274 Avoid mutating SqmSelectClause during type validation * HHH-20273 Failed to set List type field in Embeddable record * HHH-20272 JDBC locking pre-actions are not executed before the statement * HHH-20271 SybaseASE reports wrong lock metadata * HHH-20267 Hibernate processor: infinite generation of repositories when extending PanacheRepository * HHH-20266 Some unnesting array functions miss ordering on index on aggregation * HHH-20260 Session#find only logs LockTimeoutException instead of throwing it on PostgreSQL * HHH-20259 DdlTypeRegistry#addSqlType doesn't handle different type codes registered to same DDL type properly * HHH-20251 NPE: query with fetch graph and read-only hint on bytecode enhanced entities * HHH-20231 Errors when querying 2L-cached native queries with same SQL but different result type * HHH-20230 [Metamodel Generator] AnnotationMetaEntity fails to compile repository methods with unbounded wildcard Sort&lt;?&gt; * HHH-20209 Race Condition in JavaTypeRegistry causing SemanticException during parallel UNION queries with projection. * HHH-20126 NPE when querying with a lockMode/lockScope * HHH-20053 HQL grammar ambiguity for NOT keyword * HHH-19885 Wrong mapping of legacy XML &quot;access&quot; attribute in HbmXmlTransformer * HHH-19818 NPE with stateless insert when Envers is enabled * HHH-19429 ConcurrentModificationException observed while executing JPQL update query with VERSIONED clause * HHH-12986 ConfigLoader does not close file when loading hibernate.cfg.xml * HHH-12590 Postgres subselect: ERROR: subquery in FROM must have an alias</p> <p>** Improvement * HHH-20256 Make ByteBuddy class generation build-reproducible * HHH-20227 Avoid using reflection and parsing annotations when initializing the Hibernate and JPA annotation descriptors</p> <p>** Task * HHH-20311 Upgrade to hibernate-modules 1.1.1 * HHH-20301 Upgrade ByteBuddy to 1.18.8 * HHH-20232 Update c3p0 to 0.12.0</p> <h2>Changes in 7.3.0.Final (March 16, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/37673">https://hibernate.atlassian.net/projects/HHH/versions/37673</a></p> <p>** Bug * HHH-20253 ClassCastException when using hibernate-enhance-maven-plugin plugin * HHH-20229 logFlushResults ko with a <a href="https://github.com/AnyKeyJavaClass"><code>@​AnyKeyJavaClass</code></a>(String.class) * HHH-20224 Exception when calling treat() twice</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hibernate/hibernate-orm/commit/bc279526ae876e0212536b82444bed0fab6f7a82"><code>bc27952</code></a> [Jenkins release job] Preparing release 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/ff58198de86ce8c21e4b6cd30df1cd03451d80ed"><code>ff58198</code></a> [Jenkins release job] changelog.txt updated by release build 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/4f4d466be43643612cf3ca1447019c3d5f2c770b"><code>4f4d466</code></a> HHH-20326 Fix ClassCastException when joining array within embeddable</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6c3203267afa193fc9a1d7886d31be96fdcb88fb"><code>6c32032</code></a> HHH-19885 Wrong mapping of legacy XML access attribute in HbmXmlTransformer</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/5daee8dcb806fd1747f543334fe6cda845f549a4"><code>5daee8d</code></a> Enable automated maintenance releases</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6b33f2f7d501d153660954f4e51a908ac0c6e377"><code>6b33f2f</code></a> HHH-20301 Upgrade ByteBuddy to 1.18.8</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/e5bfdd7f50c27656afd800a877aa7edc277c9765"><code>e5bfdd7</code></a> HHH-20311 Upgrade <code>hibernate-models</code> to 1.1.1</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/cbbdc4faaeee071d8878bf9d0ded3d39cf92e1bf"><code>cbbdc4f</code></a> Make database version part of task inputs to avoid skipping tests with same d...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/85205304cdd0744c281d6290945916f9013574ad"><code>8520530</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/95de1b6e287e77a820cab33ee82d79591f7cc481"><code>95de1b6</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li>Additional commits viewable in <a href="https://github.com/hibernate/hibernate-orm/compare/7.2.6...7.3.1">compare view</a></li> </ul> </details> <br /> Updates `org.hibernate.orm:hibernate-scan-jandex` from 7.2.6.Final to 7.3.1.Final <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/releases">org.hibernate.orm:hibernate-scan-jandex's releases</a>.</em></p> <blockquote> <h2>Release 7.3.1</h2> <h1>Hibernate ORM 7.3.1.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.1.Final.</p> <p>You can find the full list of 7.3.1.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.1">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <p>For additional details, see:</p> <ul> <li>the <a href="https://hibernate.org/orm/releases/7.3/">release page</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/introduction/html_single/">Introduction Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/userguide/html_single/">User Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/javadocs">API docs</a></li> </ul> <p>See also the following resources related to supported APIs:</p> <ul> <li>the <a href="https://hibernate.org/community/compatibility-policy/">compatibility policy</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/incubating/incubating.txt">incubating API report</a> (<code>@Incubating</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/deprecated/deprecated.txt">deprecated API report</a> (<code>@deprecated</code> + <code>@remove</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/internals/internal.txt">internal API report</a> (internal packages, <code>@internal</code>)</li> </ul> <p>Visit the <a href="https://hibernate.org/community/">website</a> for details on getting in touch with us.</p> <h2>Release 7.3.0</h2> <h1>Hibernate ORM 7.3.0.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.0.Final.</p> <p>You can find the full list of 7.3.0.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.0">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/blob/7.3.1/changelog.txt">org.hibernate.orm:hibernate-scan-jandex's changelog</a>.</em></p> <blockquote> <h2>Changes in 7.3.1.Final (April 10, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/38285">https://hibernate.atlassian.net/projects/HHH/versions/38285</a></p> <p>** Bug * HHH-20326 ClassCastException when joining array within embeddable * HHH-20287 DataException ( Parameter is not set) when updating only the version of an Entity with a PartitionKey * HHH-20283 key-based pagination appears to be broken * HHH-20281 Missing temporal precision for parameter coercion leading to ClassCastException * HHH-20274 Avoid mutating SqmSelectClause during type validation * HHH-20273 Failed to set List type field in Embeddable record * HHH-20272 JDBC locking pre-actions are not executed before the statement * HHH-20271 SybaseASE reports wrong lock metadata * HHH-20267 Hibernate processor: infinite generation of repositories when extending PanacheRepository * HHH-20266 Some unnesting array functions miss ordering on index on aggregation * HHH-20260 Session#find only logs LockTimeoutException instead of throwing it on PostgreSQL * HHH-20259 DdlTypeRegistry#addSqlType doesn't handle different type codes registered to same DDL type properly * HHH-20251 NPE: query with fetch graph and read-only hint on bytecode enhanced entities * HHH-20231 Errors when querying 2L-cached native queries with same SQL but different result type * HHH-20230 [Metamodel Generator] AnnotationMetaEntity fails to compile repository methods with unbounded wildcard Sort&lt;?&gt; * HHH-20209 Race Condition in JavaTypeRegistry causing SemanticException during parallel UNION queries with projection. * HHH-20126 NPE when querying with a lockMode/lockScope * HHH-20053 HQL grammar ambiguity for NOT keyword * HHH-19885 Wrong mapping of legacy XML &quot;access&quot; attribute in HbmXmlTransformer * HHH-19818 NPE with stateless insert when Envers is enabled * HHH-19429 ConcurrentModificationException observed while executing JPQL update query with VERSIONED clause * HHH-12986 ConfigLoader does not close file when loading hibernate.cfg.xml * HHH-12590 Postgres subselect: ERROR: subquery in FROM must have an alias</p> <p>** Improvement * HHH-20256 Make ByteBuddy class generation build-reproducible * HHH-20227 Avoid using reflection and parsing annotations when initializing the Hibernate and JPA annotation descriptors</p> <p>** Task * HHH-20311 Upgrade to hibernate-modules 1.1.1 * HHH-20301 Upgrade ByteBuddy to 1.18.8 * HHH-20232 Update c3p0 to 0.12.0</p> <h2>Changes in 7.3.0.Final (March 16, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/37673">https://hibernate.atlassian.net/projects/HHH/versions/37673</a></p> <p>** Bug * HHH-20253 ClassCastException when using hibernate-enhance-maven-plugin plugin * HHH-20229 logFlushResults ko with a <a href="https://github.com/AnyKeyJavaClass"><code>@​AnyKeyJavaClass</code></a>(String.class) * HHH-20224 Exception when calling treat() twice</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hibernate/hibernate-orm/commit/bc279526ae876e0212536b82444bed0fab6f7a82"><code>bc27952</code></a> [Jenkins release job] Preparing release 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/ff58198de86ce8c21e4b6cd30df1cd03451d80ed"><code>ff58198</code></a> [Jenkins release job] changelog.txt updated by release build 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/4f4d466be43643612cf3ca1447019c3d5f2c770b"><code>4f4d466</code></a> HHH-20326 Fix ClassCastException when joining array within embeddable</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6c3203267afa193fc9a1d7886d31be96fdcb88fb"><code>6c32032</code></a> HHH-19885 Wrong mapping of legacy XML access attribute in HbmXmlTransformer</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/5daee8dcb806fd1747f543334fe6cda845f549a4"><code>5daee8d</code></a> Enable automated maintenance releases</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6b33f2f7d501d153660954f4e51a908ac0c6e377"><code>6b33f2f</code></a> HHH-20301 Upgrade ByteBuddy to 1.18.8</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/e5bfdd7f50c27656afd800a877aa7edc277c9765"><code>e5bfdd7</code></a> HHH-20311 Upgrade <code>hibernate-models</code> to 1.1.1</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/cbbdc4faaeee071d8878bf9d0ded3d39cf92e1bf"><code>cbbdc4f</code></a> Make database version part of task inputs to avoid skipping tests with same d...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/85205304cdd0744c281d6290945916f9013574ad"><code>8520530</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/95de1b6e287e77a820cab33ee82d79591f7cc481"><code>95de1b6</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li>Additional commits viewable in <a href="https://github.com/hibernate/hibernate-orm/compare/7.2.6...7.3.1">compare view</a></li> </ul> </details> <br /> Updates `org.hibernate.orm:hibernate-community-dialects` from 7.2.6.Final to 7.3.1.Final <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/releases">org.hibernate.orm:hibernate-community-dialects's releases</a>.</em></p> <blockquote> <h2>Release 7.3.1</h2> <h1>Hibernate ORM 7.3.1.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.1.Final.</p> <p>You can find the full list of 7.3.1.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.1">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <p>For additional details, see:</p> <ul> <li>the <a href="https://hibernate.org/orm/releases/7.3/">release page</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/introduction/html_single/">Introduction Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/userguide/html_single/">User Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/javadocs">API docs</a></li> </ul> <p>See also the following resources related to supported APIs:</p> <ul> <li>the <a href="https://hibernate.org/community/compatibility-policy/">compatibility policy</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/incubating/incubating.txt">incubating API report</a> (<code>@Incubating</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/deprecated/deprecated.txt">deprecated API report</a> (<code>@deprecated</code> + <code>@remove</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/internals/internal.txt">internal API report</a> (internal packages, <code>@internal</code>)</li> </ul> <p>Visit the <a href="https://hibernate.org/community/">website</a> for details on getting in touch with us.</p> <h2>Release 7.3.0</h2> <h1>Hibernate ORM 7.3.0.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.0.Final.</p> <p>You can find the full list of 7.3.0.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.0">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/blob/7.3.1/changelog.txt">org.hibernate.orm:hibernate-community-dialects's changelog</a>.</em></p> <blockquote> <h2>Changes in 7.3.1.Final (April 10, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/38285">https://hibernate.atlassian.net/projects/HHH/versions/38285</a></p> <p>** Bug * HHH-20326 ClassCastException when joining array within embeddable * HHH-20287 DataException ( Parameter is not set) when updating only the version of an Entity with a PartitionKey * HHH-20283 key-based pagination appears to be broken * HHH-20281 Missing temporal precision for parameter coercion leading to ClassCastException * HHH-20274 Avoid mutating SqmSelectClause during type validation * HHH-20273 Failed to set List type field in Embeddable record * HHH-20272 JDBC locking pre-actions are not executed before the statement * HHH-20271 SybaseASE reports wrong lock metadata * HHH-20267 Hibernate processor: infinite generation of repositories when extending PanacheRepository * HHH-20266 Some unnesting array functions miss ordering on index on aggregation * HHH-20260 Session#find only logs LockTimeoutException instead of throwing it on PostgreSQL * HHH-20259 DdlTypeRegistry#addSqlType doesn't handle different type codes registered to same DDL type properly * HHH-20251 NPE: query with fetch graph and read-only hint on bytecode enhanced entities * HHH-20231 Errors when querying 2L-cached native queries with same SQL but different result type * HHH-20230 [Metamodel Generator] AnnotationMetaEntity fails to compile repository methods with unbounded wildcard Sort&lt;?&gt; * HHH-20209 Race Condition in JavaTypeRegistry causing SemanticException during parallel UNION queries with projection. * HHH-20126 NPE when querying with a lockMode/lockScope * HHH-20053 HQL grammar ambiguity for NOT keyword * HHH-19885 Wrong mapping of legacy XML &quot;access&quot; attribute in HbmXmlTransformer * HHH-19818 NPE with stateless insert when Envers is enabled * HHH-19429 ConcurrentModificationException observed while executing JPQL update query with VERSIONED clause * HHH-12986 ConfigLoader does not close file when loading hibernate.cfg.xml * HHH-12590 Postgres subselect: ERROR: subquery in FROM must have an alias</p> <p>** Improvement * HHH-20256 Make ByteBuddy class generation build-reproducible * HHH-20227 Avoid using reflection and parsing annotations when initializing the Hibernate and JPA annotation descriptors</p> <p>** Task * HHH-20311 Upgrade to hibernate-modules 1.1.1 * HHH-20301 Upgrade ByteBuddy to 1.18.8 * HHH-20232 Update c3p0 to 0.12.0</p> <h2>Changes in 7.3.0.Final (March 16, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/37673">https://hibernate.atlassian.net/projects/HHH/versions/37673</a></p> <p>** Bug * HHH-20253 ClassCastException when using hibernate-enhance-maven-plugin plugin * HHH-20229 logFlushResults ko with a <a href="https://github.com/AnyKeyJavaClass"><code>@​AnyKeyJavaClass</code></a>(String.class) * HHH-20224 Exception when calling treat() twice</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hibernate/hibernate-orm/commit/bc279526ae876e0212536b82444bed0fab6f7a82"><code>bc27952</code></a> [Jenkins release job] Preparing release 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/ff58198de86ce8c21e4b6cd30df1cd03451d80ed"><code>ff58198</code></a> [Jenkins release job] changelog.txt updated by release build 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/4f4d466be43643612cf3ca1447019c3d5f2c770b"><code>4f4d466</code></a> HHH-20326 Fix ClassCastException when joining array within embeddable</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6c3203267afa193fc9a1d7886d31be96fdcb88fb"><code>6c32032</code></a> HHH-19885 Wrong mapping of legacy XML access attribute in HbmXmlTransformer</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/5daee8dcb806fd1747f543334fe6cda845f549a4"><code>5daee8d</code></a> Enable automated maintenance releases</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6b33f2f7d501d153660954f4e51a908ac0c6e377"><code>6b33f2f</code></a> HHH-20301 Upgrade ByteBuddy to 1.18.8</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/e5bfdd7f50c27656afd800a877aa7edc277c9765"><code>e5bfdd7</code></a> HHH-20311 Upgrade <code>hibernate-models</code> to 1.1.1</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/cbbdc4faaeee071d8878bf9d0ded3d39cf92e1bf"><code>cbbdc4f</code></a> Make database version part of task inputs to avoid skipping tests with same d...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/85205304cdd0744c281d6290945916f9013574ad"><code>8520530</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/95de1b6e287e77a820cab33ee82d79591f7cc481"><code>95de1b6</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li>Additional commits viewable in <a href="https://github.com/hibernate/hibernate-orm/compare/7.2.6...7.3.1">compare view</a></li> </ul> </details> <br /> Updates `org.hibernate.orm:hibernate-c3p0` from 7.2.6.Final to 7.3.1.Final <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/releases">org.hibernate.orm:hibernate-c3p0's releases</a>.</em></p> <blockquote> <h2>Release 7.3.1</h2> <h1>Hibernate ORM 7.3.1.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.1.Final.</p> <p>You can find the full list of 7.3.1.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.1">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <p>For additional details, see:</p> <ul> <li>the <a href="https://hibernate.org/orm/releases/7.3/">release page</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/introduction/html_single/">Introduction Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/userguide/html_single/">User Guide</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/javadocs">API docs</a></li> </ul> <p>See also the following resources related to supported APIs:</p> <ul> <li>the <a href="https://hibernate.org/community/compatibility-policy/">compatibility policy</a></li> <li>the <a href="https://docs.hibernate.org/orm/7.3/incubating/incubating.txt">incubating API report</a> (<code>@Incubating</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/deprecated/deprecated.txt">deprecated API report</a> (<code>@deprecated</code> + <code>@remove</code>)</li> <li>the <a href="https://docs.hibernate.org/orm/7.3/internals/internal.txt">internal API report</a> (internal packages, <code>@internal</code>)</li> </ul> <p>Visit the <a href="https://hibernate.org/community/">website</a> for details on getting in touch with us.</p> <h2>Release 7.3.0</h2> <h1>Hibernate ORM 7.3.0.Final released</h1> <p>Today, we published a new release of Hibernate ORM 7.3: 7.3.0.Final.</p> <p>You can find the full list of 7.3.0.Final changes <a href="https://hibernate.atlassian.net/issues/?jql=project%20%3D%20HHH%20AND%20fixVersion%20%3D%207.3.0">here</a>.</p> <h2>What's new</h2> <ul> <li>See the <a href="https://hibernate.org/orm/releases/7.3">website</a> for requirements and compatibilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/whats-new/whats-new.html">What's New</a> guide for details about new features and capabilities.</li> <li>See the <a href="https://docs.hibernate.org/orm/7.3/migration-guide/">Migration Guide</a> for details about migration.</li> </ul> <h2>Conclusion</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hibernate/hibernate-orm/blob/7.3.1/changelog.txt">org.hibernate.orm:hibernate-c3p0's changelog</a>.</em></p> <blockquote> <h2>Changes in 7.3.1.Final (April 10, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/38285">https://hibernate.atlassian.net/projects/HHH/versions/38285</a></p> <p>** Bug * HHH-20326 ClassCastException when joining array within embeddable * HHH-20287 DataException ( Parameter is not set) when updating only the version of an Entity with a PartitionKey * HHH-20283 key-based pagination appears to be broken * HHH-20281 Missing temporal precision for parameter coercion leading to ClassCastException * HHH-20274 Avoid mutating SqmSelectClause during type validation * HHH-20273 Failed to set List type field in Embeddable record * HHH-20272 JDBC locking pre-actions are not executed before the statement * HHH-20271 SybaseASE reports wrong lock metadata * HHH-20267 Hibernate processor: infinite generation of repositories when extending PanacheRepository * HHH-20266 Some unnesting array functions miss ordering on index on aggregation * HHH-20260 Session#find only logs LockTimeoutException instead of throwing it on PostgreSQL * HHH-20259 DdlTypeRegistry#addSqlType doesn't handle different type codes registered to same DDL type properly * HHH-20251 NPE: query with fetch graph and read-only hint on bytecode enhanced entities * HHH-20231 Errors when querying 2L-cached native queries with same SQL but different result type * HHH-20230 [Metamodel Generator] AnnotationMetaEntity fails to compile repository methods with unbounded wildcard Sort&lt;?&gt; * HHH-20209 Race Condition in JavaTypeRegistry causing SemanticException during parallel UNION queries with projection. * HHH-20126 NPE when querying with a lockMode/lockScope * HHH-20053 HQL grammar ambiguity for NOT keyword * HHH-19885 Wrong mapping of legacy XML &quot;access&quot; attribute in HbmXmlTransformer * HHH-19818 NPE with stateless insert when Envers is enabled * HHH-19429 ConcurrentModificationException observed while executing JPQL update query with VERSIONED clause * HHH-12986 ConfigLoader does not close file when loading hibernate.cfg.xml * HHH-12590 Postgres subselect: ERROR: subquery in FROM must have an alias</p> <p>** Improvement * HHH-20256 Make ByteBuddy class generation build-reproducible * HHH-20227 Avoid using reflection and parsing annotations when initializing the Hibernate and JPA annotation descriptors</p> <p>** Task * HHH-20311 Upgrade to hibernate-modules 1.1.1 * HHH-20301 Upgrade ByteBuddy to 1.18.8 * HHH-20232 Update c3p0 to 0.12.0</p> <h2>Changes in 7.3.0.Final (March 16, 2026)</h2> <p><a href="https://hibernate.atlassian.net/projects/HHH/versions/37673">https://hibernate.atlassian.net/projects/HHH/versions/37673</a></p> <p>** Bug * HHH-20253 ClassCastException when using hibernate-enhance-maven-plugin plugin * HHH-20229 logFlushResults ko with a <a href="https://github.com/AnyKeyJavaClass"><code>@​AnyKeyJavaClass</code></a>(String.class) * HHH-20224 Exception when calling treat() twice</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hibernate/hibernate-orm/commit/bc279526ae876e0212536b82444bed0fab6f7a82"><code>bc27952</code></a> [Jenkins release job] Preparing release 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/ff58198de86ce8c21e4b6cd30df1cd03451d80ed"><code>ff58198</code></a> [Jenkins release job] changelog.txt updated by release build 7.3.1.Final</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/4f4d466be43643612cf3ca1447019c3d5f2c770b"><code>4f4d466</code></a> HHH-20326 Fix ClassCastException when joining array within embeddable</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6c3203267afa193fc9a1d7886d31be96fdcb88fb"><code>6c32032</code></a> HHH-19885 Wrong mapping of legacy XML access attribute in HbmXmlTransformer</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/5daee8dcb806fd1747f543334fe6cda845f549a4"><code>5daee8d</code></a> Enable automated maintenance releases</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/6b33f2f7d501d153660954f4e51a908ac0c6e377"><code>6b33f2f</code></a> HHH-20301 Upgrade ByteBuddy to 1.18.8</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/e5bfdd7f50c27656afd800a877aa7edc277c9765"><code>e5bfdd7</code></a> HHH-20311 Upgrade <code>hibernate-models</code> to 1.1.1</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/cbbdc4faaeee071d8878bf9d0ded3d39cf92e1bf"><code>cbbdc4f</code></a> Make database version part of task inputs to avoid skipping tests with same d...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/85205304cdd0744c281d6290945916f9013574ad"><code>8520530</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li><a href="https://github.com/hibernate/hibernate-orm/commit/95de1b6e287e77a820cab33ee82d79591f7cc481"><code>95de1b6</code></a> HHH-20287 DataException ( Parameter is not set) when updating only the versio...</li> <li>Additional commits viewable in <a href="https://github.com/hibernate/hibernate-orm/compare/7.2.6...7.3.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
2 parents 7041f97 + 05e5f5a commit d573ba8

7 files changed

Lines changed: 48 additions & 17 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
<r2dbc.version>1.0.0.RELEASE</r2dbc.version>
118118

119119
<!-- JPA deps -->
120-
<hibernate.version>7.2.6.Final</hibernate.version>
120+
<hibernate.version>7.3.1.Final</hibernate.version>
121121
<hibernate.validator.version>9.1.0.Final</hibernate.validator.version>
122122
<eclipselink.version>5.0.0-B13</eclipselink.version>
123123
<jpa.version>3.2.0</jpa.version>

querydsl-libraries/querydsl-jpa/src/main/java/com/querydsl/jpa/JPQLSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ public Void visit(SubQueryExpression<?> query, Void context) {
427427
&& modifiers.isRestricting()
428428
&& templates.isSubQueryModifiersSupported()) {
429429
if (modifiers.getLimit() != null) {
430-
append(LIMIT).handle(modifiers.getLimit());
430+
append(LIMIT).handle(modifiers.getLimitAsInteger());
431431
}
432432
if (modifiers.getOffset() != null) {
433-
append(OFFSET).handle(modifiers.getOffset());
433+
append(OFFSET).handle(modifiers.getOffsetAsInteger());
434434
}
435435
}
436436

querydsl-libraries/querydsl-jpa/src/main/java/com/querydsl/jpa/hibernate/HibernateUtil.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ private static void setValueWithNumberedLabel(
108108
query.setParameterList(key, collection);
109109
} else if (val instanceof Object[] objects && !BUILT_IN.contains(val.getClass())) {
110110
query.setParameterList(key, objects);
111-
} else if (val instanceof Number && TYPES.containsKey(val.getClass())) {
112-
query.setParameter(key, val, getType(val.getClass()));
113111
} else {
114112
query.setParameter(key, val);
115113
}

querydsl-libraries/querydsl-jpa/src/main/java/com/querydsl/jpa/impl/JPAUtil.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@
2929
*/
3030
public final class JPAUtil {
3131

32+
private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER =
33+
Map.of(
34+
int.class, Integer.class,
35+
long.class, Long.class,
36+
double.class, Double.class,
37+
float.class, Float.class,
38+
short.class, Short.class,
39+
byte.class, Byte.class);
40+
41+
@SuppressWarnings("unchecked")
42+
private static <T extends Number> Class<T> primitiveToWrapper(Class<?> type) {
43+
return (Class<T>) PRIMITIVE_TO_WRAPPER.getOrDefault(type, type);
44+
}
45+
3246
private JPAUtil() {}
3347

3448
public static void setConstants(
@@ -50,8 +64,9 @@ public static void setConstants(
5064
Parameter parameter = query.getParameter(i + 1);
5165
var parameterType = parameter != null ? parameter.getParameterType() : null;
5266
if (parameterType != null && !parameterType.isInstance(val)) {
53-
if (val instanceof Number number && Number.class.isAssignableFrom(parameterType)) {
54-
val = MathUtils.cast(number, parameterType);
67+
var targetType = primitiveToWrapper(parameterType);
68+
if (val instanceof Number number && Number.class.isAssignableFrom(targetType)) {
69+
val = MathUtils.cast(number, targetType);
5570
}
5671
}
5772
}

querydsl-libraries/querydsl-jpa/src/test/java/com/querydsl/jpa/JPQLSerializerTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public void visit_subQueryExpression_with_limit_hql() {
395395

396396
assertThat(serializer.toString()).isEqualTo("(select cat.id\nfrom Cat cat\nlimit ?1)");
397397
assertThat(serializer.getConstants()).hasSize(1);
398-
assertThat(serializer.getConstants().getFirst()).isEqualTo(5L);
398+
assertThat(serializer.getConstants().getFirst()).isEqualTo(5);
399399
}
400400

401401
@Test
@@ -418,7 +418,7 @@ public void visit_subQueryExpression_with_offset_hql() {
418418

419419
assertThat(serializer.toString()).isEqualTo("(select cat.id\nfrom Cat cat\noffset ?1)");
420420
assertThat(serializer.getConstants()).hasSize(1);
421-
assertThat(serializer.getConstants().getFirst()).isEqualTo(10L);
421+
assertThat(serializer.getConstants().getFirst()).isEqualTo(10);
422422
}
423423

424424
@Test
@@ -442,8 +442,8 @@ public void visit_subQueryExpression_with_limit_and_offset_hql() {
442442
assertThat(serializer.toString())
443443
.isEqualTo("(select cat.id\nfrom Cat cat\nlimit ?1\noffset ?2)");
444444
assertThat(serializer.getConstants()).hasSize(2);
445-
assertThat(serializer.getConstants().get(0)).isEqualTo(5L);
446-
assertThat(serializer.getConstants().get(1)).isEqualTo(10L);
445+
assertThat(serializer.getConstants().get(0)).isEqualTo(5);
446+
assertThat(serializer.getConstants().get(1)).isEqualTo(10);
447447
}
448448

449449
@Test
@@ -469,8 +469,8 @@ where cat.id in (select mate.id
469469
limit ?1)
470470
limit ?2)""");
471471
assertThat(serializer.getConstants()).hasSize(2);
472-
assertThat(serializer.getConstants().get(0)).isEqualTo(3L);
473-
assertThat(serializer.getConstants().get(1)).isEqualTo(5L);
472+
assertThat(serializer.getConstants().get(0)).isEqualTo(3);
473+
assertThat(serializer.getConstants().get(1)).isEqualTo(5);
474474
}
475475

476476
@Test
@@ -537,8 +537,8 @@ where cat.id in (select kitten.id
537537
limit ?1
538538
offset ?2)""");
539539
assertThat(hqlSerializer.getConstants()).hasSize(2);
540-
assertThat(hqlSerializer.getConstants().get(0)).isEqualTo(5L);
541-
assertThat(hqlSerializer.getConstants().get(1)).isEqualTo(10L);
540+
assertThat(hqlSerializer.getConstants().get(0)).isEqualTo(5);
541+
assertThat(hqlSerializer.getConstants().get(1)).isEqualTo(10);
542542
}
543543

544544
@Test
@@ -601,7 +601,7 @@ public void subquery_in_select_clause_with_modifiers_hql() {
601601
offset ?2)
602602
from Cat cat""");
603603
assertThat(hqlSerializer.getConstants()).hasSize(2);
604-
assertThat(hqlSerializer.getConstants().get(0)).isEqualTo(1L);
605-
assertThat(hqlSerializer.getConstants().get(1)).isEqualTo(2L);
604+
assertThat(hqlSerializer.getConstants().get(0)).isEqualTo(1);
605+
assertThat(hqlSerializer.getConstants().get(1)).isEqualTo(2);
606606
}
607607
}

querydsl-tooling/querydsl-jpa-codegen/src/test/java/com/querydsl/jpa/codegen/JPADomainExporterTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ public void test() throws IOException {
6969
var origFile = origRoot.toPath().resolve(relativeFile);
7070
var reference = new String(Files.readAllBytes(origFile), StandardCharsets.UTF_8);
7171
var content = new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8);
72+
73+
if (file.getName().equals("QCalendar.java")) {
74+
// The APT processor does not apply @Temporal(TemporalType.DATE) to @ElementCollection
75+
// map values, so it generates DateTimePath for java.util.Date. The JPADomainExporter
76+
// correctly reads @Temporal from the Hibernate metamodel and generates DatePath.
77+
// Hibernate 7.3+ fixed metamodel exposure of @Temporal for map attributes.
78+
reference = reference.replace("DateTimePath", "DatePath");
79+
}
80+
7281
assertThat(content).as("Mismatch for " + file.getName() + "\n").isEqualTo(reference);
7382
}
7483
}

querydsl-tooling/querydsl-jpa-codegen/src/test/java/com/querydsl/jpa/codegen/ant/AntJPADomainExporterTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ public void test() throws IOException {
3535
var reference =
3636
new String(java.nio.file.Files.readAllBytes(origFile), StandardCharsets.UTF_8);
3737
var content = new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8);
38+
39+
if (file.getName().equals("QCalendar.java")) {
40+
// The APT processor does not apply @Temporal(TemporalType.DATE) to @ElementCollection
41+
// map values, so it generates DateTimePath for java.util.Date. The JPADomainExporter
42+
// correctly reads @Temporal from the Hibernate metamodel and generates DatePath.
43+
// Hibernate 7.3+ fixed metamodel exposure of @Temporal for map attributes.
44+
reference = reference.replace("DateTimePath", "DatePath");
45+
}
46+
3847
assertThat(content).withFailMessage("Mismatch for %s", file.getPath()).isEqualTo(reference);
3948
}
4049
}

0 commit comments

Comments
 (0)