-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Seeking bidrectional one->many list association example.
PostPosted: Tue Jun 05, 2012 12:14 pm 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
the 3.6.10 testsuite shows a unidirectional example for indexcol.

I'm looking for the same that uses a bidirectional relationship and an example that doesn't cause the collection to be fully initialized whenever you add an element to it.

I am working with large collections and I'm trying to find an approach whereby I can model 1->N but not trigger a full initialize (not proxy) whenver I add an element to the collection.

Even if I go back to use mappedBy on the parent and maintain the order myself with an @OrderBy since I have a synthetic primary key it still insists on fully initializing the collection
whenever I want to add to it.

Why is this not an issue deemed worthy of addressing? Just curious.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.