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. |