-->
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 filter a many-to-one table??
PostPosted: Sun Jan 09, 2011 2:30 pm 
Newbie

Joined: Sun Jan 09, 2011 1:28 pm
Posts: 1
i have two tables,table_fact and table_dict
they have a many to one relationship,which is :fact-n-1-dict
and i have put the <many-to-one> tag in table_fact.hbm.xml

now i want to use hibernate <filter> to filter table_fact by fields of table_dict.
i have tried many ways ,but none of them works

i know hibernate surports one to many filter,that i can put <filter> in the <set> tags
but how about many to one or one to one?

could anyone give me a sample?


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.