Hi Chad,

thanks! I'm going to change my cartridge to the same behaviour, so I'll
stay compatible to the other ORM-cartridges.

Matthias


On Wed, 2005-03-09 at 19:05, Chad Brandon wrote:
> You should define your relationship like this (if you're trying to say a
> Person can optionally belong to one team and a Team can be made up of 0 or
> more members:
> 
> class:          Person  -----------------------  Team
> role:                  members               team
> multiplicity:          0..n                 0..1
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matthias
> K�spert
> Sent: Wednesday, March 09, 2005 10:59 AM
> To: andromda-user
> Subject: [Andromda-user] Role name modelling
> 
> Hi folks,
> 
> this time I've got a problem with modeling role-names:
> 
> as far as I know the role-name is modeled on the src-end while the role
> multiplicity is modeled on the tgt -end of the association (seen from
> the class I want the role name for). I.e.:
> 
> class:          Person  -----------------------  Team
> role:                  member               team
> multiplicity:          0..1                 0..n
> 
> Am I right? I checked this in my UML-Book (UML Glasklar) and by asking
> my personal UML-guru - please correct me if this assumption is wrong.
> 
> Now, if I use the TestModel of my ODBI-cartridge with the
> Hibernate-cartridge it seems that the Hibernate-cartridge defines roles
> the other way round:
> 
> I get team()-methods in class Team and members() in class Person which
> take Team as parameter.
> 
> Any ideas how to solve that? 
> 
> TIA,
> Matthias
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Andromda-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/andromda-user
> 
> 
> 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to