duplicate « Criteria « JPA Q&A





1. Hibernate, getting duplicate values    stackoverflow.com

I am writing a very simple query, but I am getting duplicate values for some reason.

Criteria cr = session.createCriteria(ProcessInstance.class, "p")
        .add(Restrictions.isNull("end"));
@Cleanup ScrollableResults sr = ...

2. duplicate results using criteria    forum.hibernate.org