thanks marina,
if that's the case, wouldn't it make sense to disallow field types of List? a List is ordered, by definition. it is sort of misleading to allow one to specify it as List and then state the retrieved order is undefined.
Marina Vatkina <Marina.Vatkina_at_Sun.COM> wrote: Unfortunately not - a) if you are not specifying the orderBy, the list can be
returned by the database retrieved order; b) but even if you do, the spec allows
to use cashed values, so if you didn't order the list before the commit, you
might get back a copy of the committed view.
-marina
jeff wrote On 03/14/07 15:22,:
> if i have a field ...
>
> List foos = new ArrayList();
>
> am i guaranteed that when i persist and then retrieve the object that
> the ordering of list elements will be maintained? i am seeing that it is
> not.
>
> thanks.
>
>
> ------------------------------------------------------------------------
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games.
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.