| qualified Association in TreeEditor [message #685986] |
Tue, 21 June 2011 05:37  |
st oehm Messages: 79 Registered: October 2009 |
Member |
|
|
hallo
i have a problem, with qualified Association or more exactly with mapping a qualified Association. According to the UML Specification, the qualifier is put as a children of a property. so let us assume a example like in the file bookSite.
is the mapping like in bookSiteUml correct.
especially is the duplication of the sitenumber correct (once in Site and once in sites)? is the cardinality of the property sites correct or must it be 1..1?
and what exactly means the cardinality of a qualifier?
can there be a qualifier also for attributes, which are not part of an association and can there be a qualifier in n-ary association, and when yes what does it mean?
the uml-specification is not very exact due this topic.
thanks for help
regards
stoehm
|
|
|
| Re: qualified Association [message #686464 is a reply to message #685986] |
Wed, 22 June 2011 05:31   |
Vlad Varnica Messages: 546 Registered: July 2009 Location: Milton Keynes - UK |
Senior Member |
|
|
You have to consider to consider both Java and UML. When creating a one to one qualified association then the java code should include attributes and methods such as displayed in the picture and the UML model should also include association in the Site class tree as well as qualifier in the Book class.
[Updated on: Wed, 22 June 2011 08:39] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03542 seconds