-->
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.  [ 3 posts ] 
Author Message
 Post subject: @Filter definition not applied to JPA find method
PostPosted: Thu Sep 07, 2017 11:09 am 
Newbie

Joined: Fri Jul 14, 2006 10:52 am
Posts: 16
Any idea why this is? I am using the FilterDef and Filter annotations in order to use a parameterized filter that I set at runtime.
This gets executed correctly when I do a query using the entityManager create query methods, but when I use the entityManager.find, the filter is not added to the query.
Using the '@Where' annotation does add the clause but this annotation can't be parameterized as far as I know.

Ideas ?

My environment is jBoss EAP 7 that uses hibernate 5.0.9


Top
 Profile  
 
 Post subject: Re: @Filter definition not applied to JPA find method
PostPosted: Thu Sep 07, 2017 2:51 pm 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
I noticed it on one of my blog posts as well. You should open a new Jira issue for it.


Top
 Profile  
 
 Post subject: Re: @Filter definition not applied to JPA find method
PostPosted: Thu Sep 07, 2017 4:10 pm 
Newbie

Joined: Fri Jul 14, 2006 10:52 am
Posts: 16
Filed https://hibernate.atlassian.net/browse/HHH-11973


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.