-->
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: Filtering historical data without filter-def
PostPosted: Mon Jun 13, 2005 10:17 am 
Newbie

Joined: Thu Apr 14, 2005 6:26 pm
Posts: 4
I need to filter historical data (i.e. there is a flag in the database that says whether the record is active or not). So the first idea that comes to mind is of course use a filter-def which would be awesome but the object i want to filter on is a subclass and is using inheritance mappings. It appears that you can't attach a filter-def to a subclass so I'm wondering what my alternatives are. I read the documentation and poked around on the forums and it seems that maybe this same functionality can be implemented using an interceptor or event listener but I'm not clear on exactly how. If anyone has had experience with a problem like this I would appreciate any suggestions. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 13, 2005 5:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look at the where attribute

_________________
Max
Don't forget to rate


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.