[hibernate-dev] 6.0 - Session#createFilter
steve at hibernate.org
Mon Sep 12 07:29:38 EDT 2016
To be clear, I do not mean moving the method from Session to Query. More
as a user you would convert the call from Session#createFilter to
The "intent" of this #createFilter call is better served design-wise as a
stream/filter on the collection.
On Mon, Sep 12, 2016 at 12:41 AM Vlad Mihalcea <mihalcea.vlad at gmail.com>
> I agree. The createFilter can be moved to the Query, so we don't require
> this to be in the Session interface.
> I haven't seen many questions about this functionality, so I guess we
> shouldn't worry to much about this change.
> On Mon, Sep 12, 2016 at 6:02 AM, Steve Ebersole <steve at hibernate.org>
>> Another method I'd like to drop is Session#createFilter. This is method
>> easy enough to replace with a call to createQuery instead. Longer term I
>> can also see Stream or DSL support from our persistent collections to
>> provide the similar capabilities. But for now its just no real benefit
>> the cost of overly-complicating the grammars.
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
More information about the hibernate-dev