NaturalId « Map « JPA Q&A





2. JPA2 CriteriaQuery & @NaturalId    forum.hibernate.org

Is there any way to get a JPA2 CriteriaQuery to play nice with @NaturalId or does that just automatically happen? I'm using Hibernate 3.6.5 with JPA2 type-safe queries, all of my objects have @NaturalId field(s) which are used quite a bit in the application to lookup the objects. I know for the Hibernate critery query you have to tell the query ...

3. @NaturalId annotaion is not working    forum.hibernate.org