-->
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: Filters in hibernate
PostPosted: Thu Jan 26, 2012 12:43 pm 
Newbie

Joined: Thu Jan 26, 2012 12:39 pm
Posts: 1
I understand that we can add filters by using @FilterDef, then @Filter..etc These would be applicable for the fields defined in the particular table. But can I define a filter for something which is not related to the table field at all?

For instance, say the car table DOES NOT have color field defined. But somehow can I have a filter which says returns only cars of colors black?

Thank you!


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.