-->
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 map two collections to the same table
PostPosted: Fri Jul 24, 2009 11:33 am 
Newbie

Joined: Thu May 21, 2009 2:35 pm
Posts: 4
hello, could someone tell me what is the proper way to map two lists (of the same object type), so that they use the same table, but one contains objects with certain field > 0 and the other list the ones with with this field == 0?

I know I can use a mapping element ' where="arbitrary sql where condition"' , but I don't know how it will handle cascades when I move one element from one collection to another.

Thanks in advance!


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.