-->
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: Does filter work with inheritance, or is it a bug?
PostPosted: Thu Mar 17, 2005 2:14 pm 
Newbie

Joined: Thu Mar 17, 2005 2:06 pm
Posts: 12
Hibernate version: 3

It seems that the filter does not work with inheritance.

I have a two objects/tables: Response, and EmployeeResponse. EmployeeResponse inherits from Response.

In the response table in my database, I have a field IS_DELETED.

I have a filter in the .xml.xml for class response,
<filter name="isDeleted" condition="IS_DELETED = 0"/>

If I load just Responses, and a response is marked IS_DELETED = 1, then it will not show up. This works as expected.

If I load EmployeeResponses, however, ALL records show up regardless of the IS_DELETED field.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 3:42 pm 
Expert
Expert

Joined: Sat Jan 17, 2004 2:57 pm
Posts: 329
Location: In the basement in my underwear
You don't actually give a release version but the following was fixed in RC1 (although I haven't rolled up yet to test).

http://opensource.atlassian.com/project ... se/HHH-123


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.