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

griffitm do-not-reply at jboss.com
Fri Oct 26 11:57:11 EDT 2007


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 Set<Deliverable> getDeliverables(){
  |   return this.deliverables;
  | }
  | 

Does anyone have any idea how to sort the list dynamically from that point forward?

MG

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099381#4099381

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099381



More information about the jboss-user mailing list