Thanks Oskar... It was that. I guessed it was something really trivial but I wasn't being able to find it.
It worked perfectly... Thanks again, Rui On Jul 15, 6:26 pm, Oskar Berggren <[email protected]> wrote: > 2009/7/15 Rui Guimaraes <[email protected]>: > > > > > Hi, > > > I am trying to do something I would consider very simple, but I am not > > It appears to be. > > > I simply want to, on my Path, have the Tracks in an ordered List. So > > far so good... in my mapping I use the "order-by" by TRACK_ORDER. > > This is for fetching only as far as I know. > > > > > <bag name="TrackList" table="PATHS_TRACKS" cascade="none" lazy="true" > > Don't use bag. The <list> clause is for mapping with list semantics, > which preserves the ordering. > > Use <index> within the <list> to specify your column TRACK_ORDER. > > /Oskar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
