Hi:
2620 is a Enhancement Request related to this topic.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2620
thanks.
varun.
Marina Vatkina wrote:
> Hi Jeff,
>
> I agree that this feature is somewhat partially defined by the spec. So I
> suggest to send your thoughts to the JSR feedback alias ;).
>
> thanks,
> -marina
>
> jeff wrote On 03/14/07 16:09,:
>
>> 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
>> <http://farechase.yahoo.com/promo-generic-14795097;_ylc=X3oDMTFtNW45amVpBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzEEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
>>
>>> to find flight and hotel bargains.
>>>