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<Foo> foos = new ArrayList<Foo>();
>
> 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. <http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com>