uniqueResult « Criteria « JPA Q&A





2. PropertyAccessException from criteria.uniqueResult();    forum.hibernate.org

Hello, Thank you for any help in advance. I am new to Hibernate, but I've searched through the forums and couldn't find anything relevant. I am trying to obtain the Article object based on the given criteria using the Java below. The exception is thrown from the crit.uniqueResult() line. I am not sure what is going on. Please post if I ...

3. ConstraintViolationException with a criteria.uniqueResult()    forum.hibernate.org

Hi, I have a strange ConstraintViolationException with a criteria.uniqueResult(). I have EJB Session witch used Hibernate for the persitence. (see configuration files for more information) When I launch one instance of my EJB, it works perfectly but when i launch severals instances, I can have a ConstraintViolationException. Thanks for your help. Hibernate version: 3.05 Code between sessionFactory.openSession() and session.close(): Code: ...