1) A separate entity query for that (not neat at the domain model level)
2) Do it through Comparable and List sorts (potentially much slower than using
SQL to sort
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099555#4099555
Reply to the post :
Ok, I found that I can at least control the detail records by using the JPA
annotation @OrderBy on the many to one relationship as such:
| @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY,
mappedBy=section)
| @OrderBy(dueDate)
| public SetDeliverable getDeliverables(){
|