On Wed, Jan 8, 2020 at 9:22 AM Christian Beikov <christian.beikov(a)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.