Open daddyauden opened 5 years ago
String queryString = "Select i from xxx i where i.type = xxx and i.name = xxx";
Query query = em.createQuery(queryString).setFirstResult(0).setMaxResults(5);
List<?> resultList = query.getResultList();
real data is > 10000, but the query result is just only one, so how to write the sql?
String queryString = "Select i from xxx i where i.type = xxx and i.name = xxx";
Query query = em.createQuery(queryString).setFirstResult(0).setMaxResults(5);
List<?> resultList = query.getResultList();
real data is > 10000, but the query result is just only one, so how to write the sql?