users@glassfish.java.net

Re: How to Sort / OrderBy _at_OneToMany

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Sep 2007 18:00:16 PDT

so lets say in my Objects class I have this:
  @OneToMany(mappedBy="owner",cascade=CascadeType.ALL)
  @OrderBy("toolkitName")
  List<Objectattributes> Attributes;


and in my Objectattributes class I have this:
  @Column(name = "ToolkitName")
  private String toolkitName;

Will that sort the attributes by the "ToolkitName" column of the database? Because it doesn't look like it is.
[Message sent by forum member 'rmccullough' (rmccullough)]

http://forums.java.net/jive/thread.jspa?messageID=235728