[jboss-user] [JBoss Seam] - Re: Sorting Detail data in Master/Detail

2007-10-27 Thread [EMAIL PROTECTED]
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 :

[jboss-user] [JBoss Seam] - Re: Sorting Detail data in Master/Detail

2007-10-26 Thread griffitm
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(){ |