Hi,

I wasn’t able to find a previous thread that answers
this although it does sound a bit familiar to
me...feel free to refer me to a prior thread if I’m
repeating...

My goal is to be able to be able to persist a
Collection of data in a particular order (and maintain
that order when I retrieve it) and I’m hoping that
someone may be able to tell me if I am going about
this the correct way.  For example, if I have a list
B-C-A, I want to persist it and then later retrieve
that list in the same order.  The data itself isn’t
something I can just add an "order by" clause to as
the order is more time dependent.

I’ve used an orm.xml and the ReverseMappingTool to
generate my code, but even when I change the default
collection implementation to use an ordered or sorted
collection, I don’t get the expected results.  Perhaps
I’m just implementing the collection usage wrong or
this is a feature not intended to be supported in JPA?
 

I’d rather not modify my database schema but so far
that’s where I feel like this is leading me.

Any suggestions?

Thanks, in advance, for any help you can offer.

Andrea



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Reply via email to