subquery « Composite « JPA Q&A





1. Projects/Subqueries w/composite keys    forum.hibernate.org

2. HQL: Subquery on composite-element    forum.hibernate.org

I have a one-to-many association mapped as a composite-element but I run into trouble when I need to create a subquery. Example: One Product has many Parts and I want to retrieve the Products that have at least one Part that satisfies a given condition. Mapping documents: Code: ...

3. Subquery insert for a composite key.    forum.hibernate.org

I'm trying to do a subquery insert in HQL and haven't been able to figure out how to handle the following scenario. I started with a many-to-many relationship between two objects with a mapping file in between, for examples sake lets say students and classes. Where each student will be a couple classes, but each class has a lot of students. ...