Puhong You (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16489 (
https://hibernate.atlassian.net/browse/HHH-16489?atlOrigin=eyJpIjoiMjJmNT...
)
Re: Hibernate native query returns duplicate column values with addScalar() call (
https://hibernate.atlassian.net/browse/HHH-16489?atlOrigin=eyJpIjoiMjJmNT...
)
Hi, Marco, Thanks for looking into this. I agree with you that the addScalar() call is not
necessary, but it should not hurt, correct? Also with addScalar() call, the query.list()
returns List<Integer[]> instead of List<Integer>. So I still think there is
improvement can be done here.
This is also a backward compatibility issue. The addScalar() call was necessary in older
versions of hibernate.
(
https://hibernate.atlassian.net/browse/HHH-16489#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16489#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#100224- sha1:07bd2b7 )