Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16769 (
https://hibernate.atlassian.net/browse/HHH-16769?atlOrigin=eyJpIjoiMWM5Nj...
)
Re: Allow comparing expressions of certain types against a string representation in HQL (
https://hibernate.atlassian.net/browse/HHH-16769?atlOrigin=eyJpIjoiMWM5Nj...
)
WRT documentation, see
https://docs.jboss.org/hibernate/orm/6.2/userguide/html_single/Hibernate_...
To expand a bit, while we discourage flags/settings, I think this is a case where one
should be added (if this feature is added at all). The approach in the initial PRs is
simply not one we will accept. 6.x added much better validation of provided queries and
this undoes that for these cases. The PRs simply accept ANY literals as “coercible” to the
other type which is just not acceptable. This would need to valid that this is actually
the case. Here, specifically, that would mean actually doing the coercion which is clearly
a performance impact. We’d prefer to not pass the performance overhead on to all users who
are doing TheRightThing - hence the setting.
(
https://hibernate.atlassian.net/browse/HHH-16769#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16769#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:62413c2 )