-->
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.  [ 2 posts ] 
Author Message
 Post subject: a static condition in hbm??
PostPosted: Fri Feb 19, 2010 2:47 am 
Newbie

Joined: Wed Jun 17, 2009 2:04 am
Posts: 6
haii all...

I want to set a "Static condition" in my hbm file..

I have a table which do not have any domain. It is filled from another domains.
It has a field named "status", which will have either active or deactive.
In case of retrival, i need only "active" rows...for that i want to set a static condition in my hbm file...

Please help me to solve this problem


Top
 Profile  
 
 Post subject: Re: a static condition in hbm??
PostPosted: Fri Feb 19, 2010 4:14 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Code:
<class ... where="status='active'" >


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

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.