[hibernate-dev] Query#iterate

Steve Ebersole steve at hibernate.org
Fri Jan 27 09:42:25 EST 2017


I know I started a discussion of this somewhere with some of you, but I
cannot find it anymore.

I had suggested we consider getting rid of this Query#iterate method.  I
just wanted to get everyone's opinions of this.  Specifically, getting of
it in 6.0.

If anyone has dug much into the current Antlr 2 based parser you will be
familiar with this idea of shallow versus non-shallow queries.  That is
where this comes into play.  Query#iterate is a shallow query
(shallow=true).  All other queries are non-shallow.

There are quite a few internal reasons to simply drop that method and get
rid of the idea of this shallow flag.  I am happy to discuss these reasons
for those interested and that do not know.

But obviously we should not be getting rid of things just because of
"internal complications" if they are used by many users.  I cannot speak to
whether any users use this, let alone how many.

Thoughts?


More information about the hibernate-dev mailing list