mirror of
https://github.com/Example-uPagge/hibernate-multiple-bag-fetch-exception.git
synced 2024-06-15 10:55:24 +03:00
update
This commit is contained in:
@@ -22,7 +22,6 @@ public class FixProblem {
|
||||
where p.id between :minId and :maxId""", Post.class)
|
||||
.setParameter("minId", 1L)
|
||||
.setParameter("maxId", 50L)
|
||||
.setHint("PASS_DISTINCT_THROUGH", false)
|
||||
.getResultList();
|
||||
|
||||
posts = entityManager.createQuery("""
|
||||
@@ -31,7 +30,6 @@ public class FixProblem {
|
||||
left join fetch p.tags t
|
||||
where p in :posts""", Post.class)
|
||||
.setParameter("posts", posts)
|
||||
.setHint("PASS_DISTINCT_THROUGH", false)
|
||||
.getResultList();
|
||||
|
||||
final long finishTime = System.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user