Closed GoogleCodeExporter closed 9 years ago
Glad to here someones using Onotoa :)
To you issue:
You schema says: I want one association per company with one employer and one
employee. In addition you allow Persons to be in more works for relatioships.
So in other words: A company has one employer and a person may work for a lot
of companies, but at least one. I guess that's not what you wanted ;)
The cardinalities for the roles say how much players playing the specific role
are allowed in one association. I advise the usage of 1..1 like you did.
The other cardinality (next to the player type) says how often an instance of
the type may play in associations with the given type.
If you want a company to have more than one employee you need to set card-max
of the Topic Role Constraint to *. With that the same company must be at least
one times in an association typed "Works for" but may be more.
If a person may only work for one company you need to set the card-max of its
topic role constraint to 1.
With that the source code should generate like you expected.
BTW: If you don't want the cross referencing, you can deactivate the attribute
generation using annotations.
Hope this helps, if not feel free to mail me or better use the google group.
Original comment by h.niederhausen@googlemail.com
on 29 Jul 2011 at 7:42
Original issue reported on code.google.com by
eckst...@juwi.de
on 29 Jul 2011 at 7:15Attachments: