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: Filter behavior on annotated entity
PostPosted: Wed Nov 24, 2010 4:57 pm 
Newbie

Joined: Wed Nov 24, 2010 4:49 pm
Posts: 3
Hello,

We have a Filter setup on an entity using the "FilterDef" and "Filters" annotations. This works as we would expect with Criteria and HQL as long as the entity with the Filter is the "from" entity of the query. However, when the entity with the Filter is joined to from some other entity in the query, the Filter doesn't kick in and the resulting SQL doesn't have the custom filter condition on it.

Is this the expected behavior? If so, any suggestions on how to work around it?

We're currently on 3.3.2GA soon migrating to 3.5

Thanks,
Bobby


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.