1. Get records with matching values and element collection vals forum.hibernate.org |
2. How to constrain collection to exactly one match? forum.hibernate.org |
3. HQL: matching collection forum.hibernate.orgThanks for your reply, Unforturately, I don't think you understood my problem. I have a Collection of Kittens and wish to match Cats that possess exactly those kittens. For example, I have the Following Kittens (kit1, kit2, kit3). I want to match a Cat that has a child collection of exactly these 3 kittens (no more no less). Thank you, Fran ... |
4. Matching elements in 2 collections forum.hibernate.org |
5. Match all items in a collection forum.hibernate.orgHi, I've got a many to many structure between a person and relationship as follows: Code: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "PARTY_ROLE_TYPE_ID", discriminatorType = DiscriminatorType.STRING) public abstract class Person { /** The unique ID for the entity */ @Id @GeneratedValue private Long id; ... |