ok, we should take into account several issues for this, first we should be aware that it is not the same and "Hibernate ordered collection" and a "hibernate collection ordered by a column".
-In the first case, an additional attribute will contain the row index (i.e. id column) -for the second case, just an sql order by clause is used. For the first case, in your model, I sugguest to also add a @andromda.hibernate.collection.index tagged value specifying the name of the column that will hold the index, I also suggest to type it as Integer, and you will also need to model it on JCSPRelativeDistinguishedName. for the second case, just remove the ordered flag and add a @andromda.hibernate.orderByColumns clause specifying the name of the column by which it will be ordered (value in this case). Also for more help modelling the collections, I suggest you to open the hibernate test model within the hibernate cartridge, you should find there examples of all features. (In the meantime, I will try to publish an the first pages of the tutorial on next week) Carlos _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=87#87 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user