lazy « Criteria « JPA Q&A





1. Declarde a Set with lazy accociation and using Criteria    forum.hibernate.org

Hello, at first excuse my English. I am not a native speaker. I am using hibernate first time and read a lot of Hibernatesdocuments but i can't found solution. Maby you can give tip. The situation: The Problem: An Object "Catalog" can contain more than one Languagedefinitions. The definition contain the local code (two letters like us, en, de....) I choose ...

2. How to achive lazy loding with criteria    forum.hibernate.org

Hi, I need to lazyly load the entities to the parent object with some filter condition. I am having User and Role objects. In the role table, i have status field. when i call getAllRoles() method on User object, i should get only status='active' roles. But right now i am getting all the roles, irrespective of the status of the roles. ...