restriction « Association « JPA Q&A





1. double restriction on a many to many association    forum.hibernate.org

Newbie Joined: Fri May 14, 2010 12:19 pm Posts: 2 Hi, i'm facing an issue in which i would like to specify two restrictions over the same associaiton. Let me explain the problem: i have a many-to-many association between a "product" entity and a "category" entity. - A "product" can be such things as a table, a chair, a television, and ...

3. Restrictions.isNotNull and one-to-one association    forum.hibernate.org

I'm having trouble using Restrictions.isNotNull on one end of a one-to-one association. The association looks like this on one side: ...and this on the other: It is on the latter I'm trying to filter/search using QBC. The part relating to this association looks like this: sortByThese = Restrictions.and( sortByThese, Restrictions.isNotNull( ...