Restriction « Composite « JPA Q&A





2. Restrictions.in() won't work with multiple composite keys    forum.hibernate.org

Newbie Joined: Thu Sep 09, 2010 3:30 am Posts: 2 I'm using Hibernate with a Restrictions.in() criteria on a table with a composite id. Everything works fine when I put just one id in the query but when I put multiple id:s it doesn't work. The query generated by Hibernate looks like this: Code: select this_.part_id as part1_2_0_, this_.player_id as player2_2_0_, ...

3. composite-id and Restrictions.idEq(id)    forum.hibernate.org

4. Does Restrictions.in work correctly with composite ids?    forum.hibernate.org

Here's the question. I create dynamic classes and map them by generating configurations. I use a composite-id element for the primary key. I then would like to load a set of these objects in one go. Loading using get works fine, which leads me to think that the object mapping is correct. My first attempt to load using criteria was to ...

5. Composite key criteria - restriction behavior    forum.hibernate.org

Hibernate version: 3.1 Mapping documents: ...

6. Composite key criteria - restriction behavior    forum.hibernate.org

Hibernate version: 3.1 Mapping documents: ...