1. Returning an Entity using Criteria stackoverflow.com[Hibernate] Returning an Entity using CriteriaHi! Because of my poor English, I'll show directly my problem with examples. I have two entities: Product and Category (one Product is associated with one Category). ... |
2. Creating a Hibernate Criteria that can filter by referenced entity stackoverflow.comI have an entity (PersonQuestionsEntity) that has a PersonEntity and QuestionEntity as its primary key. I use a composite key to reflect this relationship. Now, I want to create a Criteria object ... |
3. Using Criteria without retrieving entire entities forum.hibernate.org |
4. Criteria API lack of control over entity hydration forum.hibernate.orgNewbie Joined: Tue Aug 29, 2006 2:10 pm Posts: 11 Consider the following examples: I have a test project with 2 entities, Parent and Child, with the following mapping files: Parent.hbm.xml: Code: |
5. Using a different Entity for same Criteria to get rowCount() forum.hibernate.orgI have an Entity based on a view that has several outer joins of large tables. In addition, it has several other relationships, so the queries generated from the Criteria can be complex, and time-consuming. The DetachedCriteria is built dynamically from user input, so generating the Criteria itself is complex. I'm using Projections.rowCount() to determine whether to execute the actually query ... |
6. Criteria API: How to apply Restriction.in to ROOT_ENTITY forum.hibernate.orgIts an intersection: i've got a collection of entities and i wish to intersect it with some other set of entities. The use case is, if i would iterate over the given collection within java, it would perform a huge number of subselects because of lazy fetching (what would perfrorm badly). If i restrict my java operation to getting a PKs ... |