You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/io.openliberty.data.internal.persistence/src/io/openliberty/data/internal/persistence/RepositoryImpl.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -603,9 +603,10 @@ else if ("toString".equals(methodName))
603
603
Tr.debug(this, tc, "flush");
604
604
em.flush();
605
605
// TODO 1.1 only detach if a stateless repository
606
-
if (entityInfo != null && !entityInfo.isHibernate) {
606
+
if (!entityInfo.isHibernate && // TODO remove this condition once #33544 is fixed
607
+
entityInfo != null) {
607
608
// Only valid if flush writes to the database,
608
-
// and Hibernate does not seem to honor flush.
609
+
// and Hibernate does not seem to honor flush. #33544
Copy file name to clipboardExpand all lines: dev/io.openliberty.data.internal_fat_jpa/test-applications/DataJPATestApp/src/test/jakarta/data/jpa/web/hibernate/DataJPAHibernateServlet.java
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,94 @@ public void testCountQuery_WHERE_SELECT_ORDER() {
146
146
assertEquals(10, page1.totalElements());
147
147
}
148
148
149
+
/**
150
+
* Reproduces an issue where updates are made and a flush is requested
151
+
* during a transaction but not honored, so if the entity is detached
0 commit comments