It should be quite straightforward to implement support for setOrder() in NativeQuery. (We can just wrap the given query in an outer select with the appropriate order by.) This is important because we want people to be able to easily swap out HQL for SQL. |