I'm using the Spring/Hibernate cartridges to model two classes, call them A and 
B. Class A will have 1 or more class B. B will have exactly 1 A. I modedl the 
relationship as a composition and set the multiplicities on each end 
accordingly: 1 on the A end and 1..* on the B end.



The problem is that in the code that is generated I'm getting a compile error 
in the ADAOBase.java in the public Object create method in the following line 
of code:



    entity.setBs(b) ;



where b is a single instance of B. 



The setBs method obviously expects a Set of Bs while only a single B is passed 
in. The generated create method also only accepts a single B.



Am I doing something wrong or is this a defect?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=612#612
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to