users@glassfish.java.net

Re: TopLink: Order of entities in collection?

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Apr 2007 13:08:13 PDT

Retrival seems to be per specification. i.e., I use OrderBy without any value for column, and the order is by primary key. The problem is that the order of objects/records in database is random. There is no relevance of the generated-id/primary key which is a Long number to the order of the objects in the originall List.

thanks,

Pramod.
[Message sent by forum member 'pramod_patel' (pramod_patel)]

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