-->
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: How to make an association Extra lazy dynamically?
PostPosted: Wed Jun 13, 2012 2:05 am 
Regular
Regular

Joined: Wed Jan 21, 2009 8:41 pm
Posts: 54
I share a model and it turns out the semantics of a "contains" method when used with a Lazy Collection differs heavily from how it would be used with an Extra Lazy Collection because contains uses primary keys where as the contains method on this particular entity is written to use a natural key thru it's equals method.

I cannot statically simply change the association to Extra Lazy because that will break other code so what I'd like to do is leave it Lazy but having it work Extra Lazily when my code runs. Our code is the same code base but runs in different vm's so changing an association type dynamically does not affect them.


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.