bag « Composite « JPA Q&A





1. composite-id, bags and many-to-many...    forum.hibernate.org

I have a problem retrieving a fully populated object, I can save but I can't retrieve the object even though i have set the lazy="false" explicityl on the bag definition. Essentially I have the following java code, public class AParent implements Serializable { // pk private Pk pk; // core attributes ... private List children = new ArrayList(); ... } Here's ...

2. Bags and composite IDs    forum.hibernate.org

...

3. one-to-many bag not hydrated when using composite fk    forum.hibernate.org

Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message mmoores Post subject: one-to-many bag not hydrated when using composite fk Posted: Fri Apr 13, 2007 3:19 pm Newbie Joined: Tue Jan 11, 2005 6:02 pm Posts: 13 Location: Seattle I have a pretty simple configuration ...

4. Unexpected delete in bag of nested composite elements    forum.hibernate.org

View unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] Unexpected delete in bag of nested composite elements Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message tysonlt Post ...

5. [resolved] Mapping a Bag with Composite Keys    forum.hibernate.org

I am having trouble mapping a collection of Bags for a Child Class (Sales Account Summary History) to a Parent Class (Sales Account Summary). Each Sales Account Summary can have multiple Sales Account Summary Histories (so a 1:N relationship) Problem: It works perfectly when I do a saveorUpdate (meaning each element in the collection is saved properly). When I load a ...

6. Using bag with composite key ?    forum.hibernate.org

Hello, I'm working on a project and use hibernate tools (Hibernate 3.0 XML Editor) to generate the entities. I need it to let me use an existing database in my JEE java code. I want to add a mapping/list/bag to an entity which contains address info. The simplified database tables looks like this: Contact --------------- contactcode (PK) contacttype (PK) lastname firstname ...