session « Composite « JPA Q&A





1. [session.get] problems getting an object with composite id    forum.hibernate.org

Beginner Joined: Mon Apr 18, 2011 10:01 am Posts: 20 Dear forum users, --please do not think TL;DR-- I wish to better understand how the session.get(...) method works, in case of an entity with composite id. I have a class PcTaskAssignee.java , defined as follows : Code: package previtc.model.task; import java.io.Serializable; import org.apache.commons.lang.builder.HashCodeBuilder; import previtc.model.AssigneeCompare; import previtc.model.EntityObject; public class PcTaskAssignee extends ...

2. Problems with session.get() with "composite-id"    forum.hibernate.org

I used Hibernate 2.1.1 and Middlegen R3. ---------------- Mapping file ---------------- OpTurno ...

3. lookup "composite key" objects on the session    forum.hibernate.org

4. Composite-id - different sessions - empty collection    forum.hibernate.org

Author Message jjsilo Post subject: Composite-id - different sessions - empty collection Posted: Thu Feb 24, 2005 4:28 pm Newbie Joined: Thu Feb 24, 2005 3:51 pm Posts: 9 Location: Montevideo, Uruguay Hi! I'm having problems with a collecction of composite-id objects. To symplify things, I have created this 3 simple classes. Prueba1 is a simple class with a ...

5. session.get() with composite key    forum.hibernate.org

6. composite-id && session.get    forum.hibernate.org

...

7. Composite-Id: session.get() doesn't retrieve Set (HQL does)    forum.hibernate.org

Hello, I'm trying to map a one-to-many relation of a Property (WxpPropData) that contains a set of Attributes (WxpPropAttributeData). The DB schema was forced on me. Both tables have Composite-ID. The relation is mapped on a primary key - Attribute's PK consists Property's PK plus attributeId. The problem is in retrieving data from the DB (see detailed code below): 1. When ...

8. composite-id problem: session.save do nothing    forum.hibernate.org

Hi all, I can`t save a persisted instance when using composite-id. This is the class: Code: public class SerieNumerica { private Integer numero; private Id id; public SerieNumerica() {} public SerieNumerica(Long idEntidad, Integer anyo) { this.id = new Id(idEntidad, anyo); ...