# Latest

**URL:** https://discourse.hibernate.org/latest.md

[Latest](https://discourse.hibernate.org/latest.md) · [Categories](https://discourse.hibernate.org/categories.md)

---

## [Intermittent "Could not interpret path expression" on the first HQL parse per JVM (7.4.5.Final, after HHH-19758)](https://discourse.hibernate.org/t/intermittent-could-not-interpret-path-expression-on-the-first-hql-parse-per-jvm-7-4-5-final-after-hhh-19758/12437)

<div class="topic-metadata">

**Author:** [@dingko](https://discourse.hibernate.org/u/dingko)\
**Replies:** 7\
**Last updated:** [September 23, 2026, 11:13am UTC](https://discourse.hibernate.org/t/intermittent-could-not-interpret-path-expression-on-the-first-hql-parse-per-jvm-7-4-5-final-after-hhh-19758/12437 "2026-09-23T11:13:30Z")

</div>

Hi, We are seeing a rare HQL parse failure that looks like the same class of defect as HHH-19758 (HQL parse failure with SLL can lead to wrong parse), but on a version that already contains that fix. I could not reprodu…

---

## [DB2 z/OS doesn't support boolean parameters](https://discourse.hibernate.org/t/db2-z-os-doesnt-support-boolean-parameters/12440)

<div class="topic-metadata">

**Author:** [@avraham.nissimov](https://discourse.hibernate.org/u/avraham.nissimov)\
**Replies:** 0\
**Last updated:** [September 22, 2026, 1:30pm UTC](https://discourse.hibernate.org/t/db2-z-os-doesnt-support-boolean-parameters/12440 "2026-09-22T13:30:11Z")

</div>

In the newer versions of Hibernate, DB2SqlAstTranslator does not support older versions syntax for boolean expressions. For instance for method visitBooleanExpressionPredicate(), as of version 6.6.26, the implementation…

---

## [Possible change in collection parameter handling between Hibernate 6.2.6.Final and 6.2.25.Final](https://discourse.hibernate.org/t/possible-change-in-collection-parameter-handling-between-hibernate-6-2-6-final-and-6-2-25-final/12435)

<div class="topic-metadata">

**Author:** [@akhilsb97](https://discourse.hibernate.org/u/akhilsb97)\
**Replies:** 1\
**Last updated:** [September 21, 2026, 1:28pm UTC](https://discourse.hibernate.org/t/possible-change-in-collection-parameter-handling-between-hibernate-6-2-6-final-and-6-2-25-final/12435 "2026-09-21T13:28:34Z")

</div>

Hi, I am getting the following exception after upgrading my dependencies: org.hibernate.QueryException: Named parameter not bound : types\_1 The exception occurs while executing a paginated query. The stack trace goes…

---

## [SelectionQuery.getResultCount Problem](https://discourse.hibernate.org/t/selectionquery-getresultcount-problem/12434)

<div class="topic-metadata">

**Author:** [@gmatege](https://discourse.hibernate.org/u/gmatege)\
**Replies:** 1\
**Last updated:** [September 21, 2026, 1:25pm UTC](https://discourse.hibernate.org/t/selectionquery-getresultcount-problem/12434 "2026-09-21T13:25:21Z")

</div>

We have a SelectionQuery that throws an exception when getResultCount() is called - Thing is, The query generated (from hql) not only misses some parts but also alters joins… When the SelectionQuery’s getResultList() or…

---

## [Improve NativeQuery to support assignable types and custom mapping handling](https://discourse.hibernate.org/t/improve-nativequery-to-support-assignable-types-and-custom-mapping-handling/12428)

<div class="topic-metadata">

**Author:** [@lyrieek](https://discourse.hibernate.org/u/lyrieek)\
**Replies:** 1\
**Last updated:** [September 16, 2026, 3:02pm UTC](https://discourse.hibernate.org/t/improve-nativequery-to-support-assignable-types-and-custom-mapping-handling/12428 "2026-09-16T15:02:12Z")

</div>

Currently, the code uses resultClass.equals(Map.class), resultClass.equals(List.class), etc. This means if a user passes a specific implementation class (like HashMap.class, ArrayList.class) or a sub-interface, it fail…

---

## [Flushing a StatelessSession](https://discourse.hibernate.org/t/flushing-a-statelesssession/12425)

<div class="topic-metadata">

**Author:** [@zpneun](https://discourse.hibernate.org/u/zpneun)\
**Replies:** 1\
**Last updated:** [September 10, 2026, 8:30am UTC](https://discourse.hibernate.org/t/flushing-a-statelesssession/12425 "2026-09-10T08:30:34Z")

</div>

In StatelessSessionImpl, the flush() method is empty. This seems logical given the contract that every method call is sent to the database immediately — in this case, a flush would be unnecessary. However, a stateless s…

---

## [Performance degradation after upgrading Hibernate from 6 to 7 cause of early acquisition of physical connection](https://discourse.hibernate.org/t/performance-degradation-after-upgrading-hibernate-from-6-to-7-cause-of-early-acquisition-of-physical-connection/12422)

<div class="topic-metadata">

**Author:** [@art.kobelev](https://discourse.hibernate.org/u/art.kobelev)\
**Replies:** 3\
**Last updated:** [September 7, 2026, 3:59pm UTC](https://discourse.hibernate.org/t/performance-degradation-after-upgrading-hibernate-from-6-to-7-cause-of-early-acquisition-of-physical-connection/12422 "2026-09-07T15:59:37Z")

</div>

Hi all! I discovered that my application’s performance had degraded by about 15% after 6-\>7 upgrade. After some investigation, I found the cause: early acquisition of physical connection for each SELECT query. JdbcSele…

---

## [orphanRemoval=true triggers loading of never-touched lazy @OneToMany collections on save() of a detached entity (Hibernate 5 → 6.6.53 regression?)](https://discourse.hibernate.org/t/orphanremoval-true-triggers-loading-of-never-touched-lazy-onetomany-collections-on-save-of-a-detached-entity-hibernate-5-6-6-53-regression/12416)

<div class="topic-metadata">

**Author:** [@Sebastian\_G2](https://discourse.hibernate.org/u/Sebastian_G2)\
**Replies:** 5\
**Last updated:** [September 7, 2026, 11:00am UTC](https://discourse.hibernate.org/t/orphanremoval-true-triggers-loading-of-never-touched-lazy-onetomany-collections-on-save-of-a-detached-entity-hibernate-5-6-6-53-regression/12416 "2026-09-07T11:00:26Z")

</div>

Hi everyone, I’m running into unexpected behavior after migrating from Hibernate 5 to Hibernate 6.6.53.Final as part of a Spring Boot 2.7 → 3.x migration. Setup I have a parent entity with several @OneToMany collectio…

---

## [Request for Jira issue-creation permission (Hibernate ORM)](https://discourse.hibernate.org/t/request-for-jira-issue-creation-permission-hibernate-orm/12419)

<div class="topic-metadata">

**Author:** [@mlk](https://discourse.hibernate.org/u/mlk)\
**Replies:** 2\
**Last updated:** [September 7, 2026, 8:48am UTC](https://discourse.hibernate.org/t/request-for-jira-issue-creation-permission-hibernate-orm/12419 "2026-09-07T08:48:02Z")

</div>

Hi, I have a Jira account on hibernate.atlassian.net but get “you don’t have permission to create issues” when trying to file a bug in the HHH project. I first hit this a few days ago and retried since, but the permissio…

---

## [Why does my cache stay invalid after an update?](https://discourse.hibernate.org/t/why-does-my-cache-stay-invalid-after-an-update/12403)

<div class="topic-metadata">

**Author:** [@Mark\_Wright](https://discourse.hibernate.org/u/Mark_Wright)\
**Replies:** 6\
**Last updated:** [September 3, 2026, 9:22am UTC](https://discourse.hibernate.org/t/why-does-my-cache-stay-invalid-after-an-update/12403 "2026-09-03T09:22:41Z")

</div>

Wildfly 39.0.1 Hibernate 6.6.40 Infinispan 16.0.5 I’m trying to use the hibernte L2C in a clustered wildfly environment. I have two nodes, behind an apache load balancer, using the standalone-ha configuration that wil…

---

## [ORA-01461: can bind a LONG value only for insert into a LONG column](https://discourse.hibernate.org/t/ora-01461-can-bind-a-long-value-only-for-insert-into-a-long-column/12407)

<div class="topic-metadata">

**Author:** [@zpneun](https://discourse.hibernate.org/u/zpneun)\
**Replies:** 3\
**Last updated:** [September 3, 2026, 8:43am UTC](https://discourse.hibernate.org/t/ora-01461-can-bind-a-long-value-only-for-insert-into-a-long-column/12407 "2026-09-03T08:43:34Z")

</div>

Hi all, I’ve got problems putting long Strings (\>32768 chars) into a CLOB field in an Oracle DB. I’ve investigated a little bit and found out that this comes from JDBC and the way how Hibernate uses it. If your SQL is …

---

## [ExoBench is a tool to get the SQL a mapping actually emits without building the app](https://discourse.hibernate.org/t/exobench-is-a-tool-to-get-the-sql-a-mapping-actually-emits-without-building-the-app/12408)

<div class="topic-metadata">

**Author:** [@deusaquilus](https://discourse.hibernate.org/u/deusaquilus)\
**Replies:** 0\
**Last updated:** [September 2, 2026, 1:14am UTC](https://discourse.hibernate.org/t/exobench-is-a-tool-to-get-the-sql-a-mapping-actually-emits-without-building-the-app/12408 "2026-09-02T01:14:10Z")

</div>

I built a tool called analyzeHibernateQueries (an extension of ExoBench MCP Server) that takes a JPA mapping and an access path, compiles them, runs them against an ephemeral database on a real Hibernate version in a san…

---

## [Detach call causing session to bypass L2C](https://discourse.hibernate.org/t/detach-call-causing-session-to-bypass-l2c/12406)

<div class="topic-metadata">

**Author:** [@Houcem\_Eddin\_Hrichi](https://discourse.hibernate.org/u/Houcem_Eddin_Hrichi)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 11:50am UTC](https://discourse.hibernate.org/t/detach-call-causing-session-to-bypass-l2c/12406 "2026-08-31T11:50:03Z")

</div>

Hi guys, I have a simple piece of code where I use and entity manager (2LC enabled with entities marked with @Cache(usage = Read\_Write). I fetch 2 entities Media and Post, I detch them and then try to fetch them again. …

---

## [@Valid on containers is deprecated but validation doesn't always work the same if moving it to the elements](https://discourse.hibernate.org/t/valid-on-containers-is-deprecated-but-validation-doesnt-always-work-the-same-if-moving-it-to-the-elements/12400)

<div class="topic-metadata">

**Author:** [@NicolasV](https://discourse.hibernate.org/u/NicolasV)\
**Replies:** 1\
**Last updated:** [August 26, 2026, 9:47am UTC](https://discourse.hibernate.org/t/valid-on-containers-is-deprecated-but-validation-doesnt-always-work-the-same-if-moving-it-to-the-elements/12400 "2026-08-26T09:47:59Z")

</div>

Hello ! I’m trying to update our code to follow the deprecation of annotation @Valid at container level. It works well in most situations, but in one the validation changed behavior. I have an interface EventsControlle…

---

## [Syncing data between two processes with JPA and hibernate without refresh](https://discourse.hibernate.org/t/syncing-data-between-two-processes-with-jpa-and-hibernate-without-refresh/12388)

<div class="topic-metadata">

**Author:** [@McModknower](https://discourse.hibernate.org/u/McModknower)\
**Replies:** 6\
**Last updated:** [August 26, 2026, 7:59am UTC](https://discourse.hibernate.org/t/syncing-data-between-two-processes-with-jpa-and-hibernate-without-refresh/12388 "2026-08-26T07:59:25Z")

</div>

I have two processes using the same entities in the same table. When I read the row from process A, then write from process B, then read again from process A, i get the value before the write of B. I know that I can use…

---

## [Join elimination in 7.x skips @SQLRestriction when querying by to-one association id](https://discourse.hibernate.org/t/join-elimination-in-7-x-skips-sqlrestriction-when-querying-by-to-one-association-id/12398)

<div class="topic-metadata">

**Author:** [@vbrown37](https://discourse.hibernate.org/u/vbrown37)\
**Replies:** 5\
**Last updated:** [August 24, 2026, 12:46pm UTC](https://discourse.hibernate.org/t/join-elimination-in-7-x-skips-sqlrestriction-when-querying-by-to-one-association-id/12398 "2026-08-24T12:46:48Z")

</div>

Hello, @SQLRestriction no longer applied when filtering by associated entity id after Hibernate 6 → 7 upgrade Versions From: Hibernate ORM 6.6.53.Final To: Hibernate ORM 7.2.19.Final Description After upgrading, a que…

---

## [Regression Issue Hibernate 7.x - HTE (temporary) tables use Java field name instead of Column name](https://discourse.hibernate.org/t/regression-issue-hibernate-7-x-hte-temporary-tables-use-java-field-name-instead-of-column-name/12380)

<div class="topic-metadata">

**Author:** [@haj0136](https://discourse.hibernate.org/u/haj0136)\
**Replies:** 4\
**Last updated:** [August 20, 2026, 8:31am UTC](https://discourse.hibernate.org/t/regression-issue-hibernate-7-x-hte-temporary-tables-use-java-field-name-instead-of-column-name/12380 "2026-08-20T08:31:37Z")

</div>

In Hibernate 7.x, there is a change in creating temporary tables (HTE) for batch inserts. Hibernate reads raw Java field names instead of real column names during creation of HTE tables. So if you have different column n…

---

## [Hibernate 6.6.46.Final: byte code enhancer fails on final entity classes](https://discourse.hibernate.org/t/hibernate-6-6-46-final-byte-code-enhancer-fails-on-final-entity-classes/12390)

<div class="topic-metadata">

**Author:** [@ronby](https://discourse.hibernate.org/u/ronby)\
**Replies:** 14\
**Last updated:** [August 19, 2026, 5:19pm UTC](https://discourse.hibernate.org/t/hibernate-6-6-46-final-byte-code-enhancer-fails-on-final-entity-classes/12390 "2026-08-19T17:19:42Z")

</div>

Hello, I am using Hibernate 6.6.46.Final and i have configured the compile time byte code enhancer maven plugin. On server startup i’ve got the following error on a final entity class: Caused by: java.lang.IllegalArgum…

---

## [Adapt Hibernate ORM 7.4 for GaussDB version 505.2](https://discourse.hibernate.org/t/adapt-hibernate-orm-7-4-for-gaussdb-version-505-2/12378)

<div class="topic-metadata">

**Author:** [@plafaith\_zhang](https://discourse.hibernate.org/u/plafaith_zhang)\
**Replies:** 3\
**Last updated:** [August 15, 2026, 4:28am UTC](https://discourse.hibernate.org/t/adapt-hibernate-orm-7-4-for-gaussdb-version-505-2/12378 "2026-08-15T04:28:30Z")

</div>

PR: Adapt for GaussDB version 505.2. by plafaithing · Pull Request #13143 · hibernate/hibernate-orm · GitHub Background Part of adapting Hibernate ORM (fork-7.4) for GaussDB. GaussDB 505.2 exposes two compatibility mo…

---

## [hibernate.transactions{result="failure"} can transiently go negative, breaking the whole Prometheus scrape (Micrometer 1.14+)](https://discourse.hibernate.org/t/hibernate-transactions-result-failure-can-transiently-go-negative-breaking-the-whole-prometheus-scrape-micrometer-1-14/12391)

<div class="topic-metadata">

**Author:** [@jongsu](https://discourse.hibernate.org/u/jongsu)\
**Replies:** 5\
**Last updated:** [August 14, 2026, 2:29pm UTC](https://discourse.hibernate.org/t/hibernate-transactions-result-failure-can-transiently-go-negative-breaking-the-whole-prometheus-scrape-micrometer-1-14/12391 "2026-08-14T14:29:22Z")

</div>

(I’d normally file this in JIRA, but my Atlassian account created several days ago still cannot create issues in HHH despite waiting as suggested in this thread - so reporting here. Happy to move it to JIRA once my acco…

---

## [How silent some log type?](https://discourse.hibernate.org/t/how-silent-some-log-type/12323)

<div class="topic-metadata">

**Author:** [@Philippe\_Kernevez](https://discourse.hibernate.org/u/Philippe_Kernevez)\
**Replies:** 5\
**Last updated:** [August 13, 2026, 1:37pm UTC](https://discourse.hibernate.org/t/how-silent-some-log-type/12323 "2026-08-13T13:37:48Z")

</div>

We have WARN logs produced by Hibernate that are just noise for us. Mainly: WARN Batch containing %s statements could not be sorted (might indicate a circular entity relationship) Because we have a few cases with a g…

---

## [Minor error in the documentation?](https://discourse.hibernate.org/t/minor-error-in-the-documentation/12384)

<div class="topic-metadata">

**Author:** [@t\_heit](https://discourse.hibernate.org/u/t_heit)\
**Replies:** 2\
**Last updated:** [August 12, 2026, 7:46pm UTC](https://discourse.hibernate.org/t/minor-error-in-the-documentation/12384 "2026-08-12T19:46:09Z")

</div>

According to section “8.1. Tuning the connection pool” in the Short Guide to Hibernate 7, table “8.2: Settings for configuring Agroal” there’s a property “hibernate.agroal.idleValidationTimeout”. In the source code clas…

---

## [Envers: collection-change audit row is mapped from an uninitialized proxy, writing NULL for every audited property of the related entity](https://discourse.hibernate.org/t/envers-collection-change-audit-row-is-mapped-from-an-uninitialized-proxy-writing-null-for-every-audited-property-of-the-related-entity/12382)

<div class="topic-metadata">

**Author:** [@apoorvam](https://discourse.hibernate.org/u/apoorvam)\
**Replies:** 3\
**Last updated:** [August 12, 2026, 1:56pm UTC](https://discourse.hibernate.org/t/envers-collection-change-audit-row-is-mapped-from-an-uninitialized-proxy-writing-null-for-every-audited-property-of-the-related-entity/12382 "2026-08-12T13:56:33Z")

</div>

When Envers generates a MOD revision for the far side of a bidirectional collection change (revision\_on\_collection\_change=true, the default), BaseEnversCollectionEventListener passes the raw collection element / owner re…

---

## [PropertyAccessException on owing side of bidirectional OneToOne](https://discourse.hibernate.org/t/propertyaccessexception-on-owing-side-of-bidirectional-onetoone/12385)

<div class="topic-metadata">

**Author:** [@Philippe\_Marschall](https://discourse.hibernate.org/u/Philippe_Marschall)\
**Replies:** 2\
**Last updated:** [August 11, 2026, 5:21pm UTC](https://discourse.hibernate.org/t/propertyaccessexception-on-owing-side-of-bidirectional-onetoone/12385 "2026-08-11T17:21:33Z")

</div>

When migrating from Hibernate 6 to 7 we are in one case getting a org.hibernate.PropertyAccessException on the owing side of a OneToOne relation. The property in question is the optimistic locking version which is a prim…

---

## [Db autoreconnect?](https://discourse.hibernate.org/t/db-autoreconnect/2930)

<div class="topic-metadata">

**Author:** [@Alessandro\_de\_Manzan](https://discourse.hibernate.org/u/Alessandro_de_Manzan)\
**Replies:** 2\
**Last updated:** [August 11, 2026, 1:32pm UTC](https://discourse.hibernate.org/t/db-autoreconnect/2930 "2026-08-11T13:32:15Z")

</div>

Hi! I’m using JPA (Hibernate in Wildfly 16) in a bunch of Java EE webapps, also in Docker containers. Sometimes the network path between WF and the DB (Postgres 11) is broken because of many reasons (DB update, etc.) a…

---

## [Native Query Returning Multiple Rows Even When Repository Return Type Is String in Springboot 4.1.0](https://discourse.hibernate.org/t/native-query-returning-multiple-rows-even-when-repository-return-type-is-string-in-springboot-4-1-0/12379)

<div class="topic-metadata">

**Author:** [@Tirumalesh\_Y](https://discourse.hibernate.org/u/Tirumalesh_Y)\
**Replies:** 2\
**Last updated:** [August 6, 2026, 2:34pm UTC](https://discourse.hibernate.org/t/native-query-returning-multiple-rows-even-when-repository-return-type-is-string-in-springboot-4-1-0/12379 "2026-08-06T14:34:31Z")

</div>

Description Note: This behaviour is observed only in SpringBoot 4.1.0 which uses Hibernate Core 7.4.1.Final in the later version of springnoot which 4.0.1 it is working fine springboot 4.0.1 uses Hibernate core 7.2.0.Fi…

---

## [One-To-Many Association occasionally not fetching actual data](https://discourse.hibernate.org/t/one-to-many-association-occasionally-not-fetching-actual-data/12374)

<div class="topic-metadata">

**Author:** [@Anton\_Ram](https://discourse.hibernate.org/u/Anton_Ram)\
**Replies:** 10\
**Last updated:** [August 4, 2026, 8:53pm UTC](https://discourse.hibernate.org/t/one-to-many-association-occasionally-not-fetching-actual-data/12374 "2026-08-04T20:53:24Z")

</div>

We are using 7.4.1.Final with mapping One-To-Many association like this: @Entity class LegalStatementEntity: UserAssignableBusinessEntity { @OneToMany(mappedBy = "target", cascade = \[CascadeType.ALL\], orphanRemov…

---

## [False positive HibernateException: Found shared references to a collection with 7.4.4](https://discourse.hibernate.org/t/false-positive-hibernateexception-found-shared-references-to-a-collection-with-7-4-4/12377)

<div class="topic-metadata">

**Author:** [@Roman\_Mosiienko](https://discourse.hibernate.org/u/Roman_Mosiienko)\
**Replies:** 3\
**Last updated:** [August 4, 2026, 3:57pm UTC](https://discourse.hibernate.org/t/false-positive-hibernateexception-found-shared-references-to-a-collection-with-7-4-4/12377 "2026-08-04T15:57:22Z")

</div>

Hey team, sorry for disturbing you, but it seems we found one regression issue, Jira here is a previous ticket where you have resolved that issue for 6.2.3, but now we have that again. Thanks

---

## [Issue using enableDirtyTracking of hibernate-enhance-maven-plugin](https://discourse.hibernate.org/t/issue-using-enabledirtytracking-of-hibernate-enhance-maven-plugin/12375)

<div class="topic-metadata">

**Author:** [@IVO-ABELOOS\_fisglbl](https://discourse.hibernate.org/u/IVO-ABELOOS_fisglbl)\
**Replies:** 8\
**Last updated:** [August 4, 2026, 3:03pm UTC](https://discourse.hibernate.org/t/issue-using-enabledirtytracking-of-hibernate-enhance-maven-plugin/12375 "2026-08-04T15:03:53Z")

</div>

I am upgrading to hibernate 6.6.53\_Final from 5.5 and using the hibernate-enhance-maven-plugin with enableDirtyTracking true. Version is mapped like: @Version @Column(name = "VERSION") public Long getVersion() { …

---

## [Stale second level cache data with discriminator based multi tenancy](https://discourse.hibernate.org/t/stale-second-level-cache-data-with-discriminator-based-multi-tenancy/12152)

<div class="topic-metadata">

**Author:** [@az264](https://discourse.hibernate.org/u/az264)\
**Replies:** 4\
**Last updated:** [July 17, 2026, 8:46pm UTC](https://discourse.hibernate.org/t/stale-second-level-cache-data-with-discriminator-based-multi-tenancy/12152 "2026-07-17T20:46:15Z")

</div>

Setup: discriminator-based multi tenancy Most of the entities have@TenantId mapped field A few entities are “global”, i.e. do not have tenant identifier field use\_second\_level\_cache: true When one of the tenants mo…

[Next page](https://discourse.hibernate.org/latest.md?page=1)
