[hibernate-dev] @Filter does not apply to direct entity fetching
Vlad Mihalcea
mihalcea.vlad at gmail.com
Mon Feb 13 02:40:11 EST 2017
Hi,
I got the following question on StackOverflow:
http://stackoverflow.com/questions/42173894/hibernate-enablefilter-not-working-when-loading-entity-by-id/42197922#42197922
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
More information about the hibernate-dev
mailing list