From 0ab69c65f4eced752ab1978813773e42f75ac5ac Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 2 Jul 2022 19:50:59 +0300 Subject: [PATCH] update --- .../struchkov/example/hibernate/nbfe/problem/GeneratePost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/struchkov/example/hibernate/nbfe/problem/GeneratePost.java b/src/main/java/dev/struchkov/example/hibernate/nbfe/problem/GeneratePost.java index b28baee..19da1a2 100644 --- a/src/main/java/dev/struchkov/example/hibernate/nbfe/problem/GeneratePost.java +++ b/src/main/java/dev/struchkov/example/hibernate/nbfe/problem/GeneratePost.java @@ -32,7 +32,7 @@ public class GeneratePost { entityManager.getTransaction().begin(); final List tags = entityManager.createQuery("SELECT t FROM Tag t where t.id IN :id", Tag.class) - .setParameter("id", LongStream.range(0, 19).boxed().collect(Collectors.toSet())) + .setParameter("id", LongStream.range(0, 20).boxed().collect(Collectors.toSet())) .getResultList(); for (int i = 0; i < 50; i++) {