[hibernate-dev] @Filter does not apply to direct entity fetching

Vlad Mihalcea mihalcea.vlad at gmail.com
Mon Feb 13 08:49:49 EST 2017


All right. I'm going to add a task for it.

On Mon, Feb 13, 2017 at 3:40 PM, andrea boriero <andrea at hibernate.org>
wrote:

> Vlad, it would be great to add this info to the documentation.
>
> On 13 February 2017 at 12:59, Steve Ebersole <steve at hibernate.org> wrote:
>
>> It is designed to work that way.
>>
>> On Mon, Feb 13, 2017 at 1:43 AM Vlad Mihalcea <mihalcea.vlad at gmail.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I got the following question on StackOverflow:
>> >
>> >
>> > http://stackoverflow.com/questions/42173894/hibernate-enable
>> filter-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
>> > _______________________________________________
>> > hibernate-dev mailing list
>> > hibernate-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>> >
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>


More information about the hibernate-dev mailing list