idbag « Map « JPA Q&A





1. Legacy n:m mapping using idbag and index column    forum.hibernate.org

Hi, I have to map a unidirectional many-to-many relationship on a legacy database. I have been given the POJOs and the database and I have to create the mappings without modifying the entities (as much as possible) or the database. My problem is that I have not been able to map a relationship table that has a PK and an Index ...

2. error in mapping with idbag    forum.hibernate.org

Regular Joined: Thu Apr 14, 2005 2:15 pm Posts: 66 When I try to open a session, I'm receiving the error message below. What can I do to solve this? Hibernate version: 3.0.5 Mapping documents: Code: ...

3. idbag collection mapping - surrogate key question    forum.hibernate.org

On page 254 of JPWH is an example of a collection mapped as an with a surrogate key declared as a . My question has to do with the definition of the Java class corresponding to the class. Does the Java class contain a property for the collection-id (in the example "ITEM_IMAGE_ID")? If not, does that mean that the ...

4. idbag mapping exception    forum.hibernate.org

5. idbag mapping problem    forum.hibernate.org

Hibernate version: 3.0 Mapping documents: java code between session.open/close User user = new User(234); List friends = new ArrayList(); User friend = new User(212); friends.add( friend ); user.setFriends( friends ) Full stack trace of any exception that occurs: 05/23/07 09:51:05,091 INFO SessionFactoryObjectFactory - Not ...