Hi Thad,
I am not perfectly sure what you are asking for. Seems you want to have exactly one Foo in your Bar as reference, so you should model the association on the Foo side as composite. If you want to be able to create a Foo with 'null' bars, you can set the multiplicity on the Bar side to 0..* Concerning your question to Collection and Set I am not sure, but I think it's perfectly okay that your type is Collection and it's Instance is a HashSet, because I think this property will generate some kind of configuration for hibernate to internally use a Set. If you try to give a List to your create method you will see an exception in hibernate that tells you that you should use a Set. Please, anyone, correct me if it is not working like that. Cheers Harald -- Harald Weyhing _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1125#1125 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user