[hibernate-dev] 6.0 - HQL literals

Steve Ebersole steve at hibernate.org
Wed Jan 8 14:21:27 EST 2020


On Wed, Jan 8, 2020 at 9:22 AM Christian Beikov <christian.beikov at gmail.com>
wrote:

>
> This is about JPA Criteria whereas I was referring to how a literal in
> HQL ends up in the SQL. I agree that with JPA Criteria things are
> different as the API for parameters in queries is not very neat. A flag
> for controlling how literals should be rendered in for JPA Criteria
> sounds ok, but ultimately, a literal should be just that, a literal.
>

Well no - its about how literals defined in ORM queries should be handled
in JDBC.  The HQL / criteria distinction is not important here.

We'll agree to disagree that query literals should always be rendered as
SQL literals.


More information about the hibernate-dev mailing list