Hi,

after reading through chapter 9 of EJB 2.0pfd (chapter on CMP) I have some
rather fundamental questions.

In our datamodels we frequently encounter relationships that have
attributes themselves. Let's take the hypothetical example of a security
system that models doors of a building and people's access rights. Every
person gets an individual PIN for each door (sorry, couldn't come up with a
less artificial example ;).

Say I have an entity Person and an Entity Door and a relationship
PersonDoorAccess with multiplicity many-many. Then things like lastAccessed
and PIN would be modelled as an attribute of that relationship. I don't see
any way of doing that using EJB2.0 CMP except for modeling the relationship
PersonDoorAccess as an entity itself.

Is there an obvious reason why relationship attributes don't seem to be
supported? Is my modeling approach wrong?

It would be great if anyone who's closer to the specifcation process could
enlighten me where my mistake is.

Thanks in advance,

Robert


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to