Dug around the source code for the hibernate cartridge and found the answer:



1) The association end HAS to be marked as "ordered" in the model. So, for the 
above, I used MagicDraw to open the specification for the association end near 
"ToDoEntry", and changed the "Ordering" property to "ordered."



2) ONE of the following also HAS to be done:

    a. Set the associationEndCollectionIndexName property in the hibernate 
namespace area of mda/conf/andromda.xml



    b. Add the tagged value @andromda.hibernate.collection.index to the 
association end near ToDoEntry.  The name you specify here does not need to be 
an attribute of the class (in fact, is CAN'T be, as that causes the name to be 
generated twice in the .hbm.xml mapping file).



Doing the above will cause the hibernate mapping to be generated as a <list>.  
No need to set the @andromda.hibernate.collection.type tag on the association 
end.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2633#2633
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to