Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNDM2NTIxMDgw...
) / New Feature (
https://hibernate.atlassian.net/browse/HHH-16848?atlOrigin=eyJpIjoiNDM2NT...
) HHH-16848 (
https://hibernate.atlassian.net/browse/HHH-16848?atlOrigin=eyJpIjoiNDM2NT...
) add SelectionQuery.ascending(int)/descending(int) (
https://hibernate.atlassian.net/browse/HHH-16848?atlOrigin=eyJpIjoiNDM2NT...
)
Issue Type: New Feature Assignee: Unassigned Components: hibernate-core Created:
26/Jun/2023 06:41 AM Priority: Major Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Would be nice to be able to “dynamically” order by a result set column.
Today we can write:
session.createSelectionQuery( "select isbn, title from Book order by ?1" )
.setParameter(1, 1)
.getResultList()
This would let you write:
session.createSelectionQuery( "select isbn, title from Book" )
.ascending(1)
.getResultList()
which is a nice shortcut.
(
https://hibernate.atlassian.net/browse/HHH-16848#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16848#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#100227- sha1:a102ba3 )