It is designed to work that way.
On Mon, Feb 13, 2017 at 1:43 AM Vlad Mihalcea <mihalcea.vlad(a)gmail.com>
wrote:
Hi,
I got the following question on StackOverflow:
http://stackoverflow.com/questions/42173894/hibernate-enablefilter-not-wo...
and it looks like a @Filter that's enabled for the current Session only
applies to entity queries, but not to direct fetching (loading the entity
by its identifier).
Is this a bug, or was it intended to work like that?
Vlad
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev