users@glassfish.java.net

Re: How to Sort / OrderBy _at_OneToMany

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Sep 2007 18:42:14 PDT

You do, but unfortunately the spec doesn't enforce it. All I could find was this:
[i]
9.1.28 OrderBy Annotation
The OrderBy annotation specifies the ordering of the elements of a collection valued association at the point when the association is retrieved.[/i]

Because TopLink doesn't always retrieve your collection, you loose even that point of reordering.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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