You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AccountAccess is intended as an associative class, that is a materialization of an association between Client and Account. The meaning is: The Client has the right to manage the Account. The associative class is necessary, as the association "Client can manage Account" has an attribute which states, if the Client is the owner of the Account, or only a manager.
It was quickly implemented as a subclass of EntityBase<AccountAccess>. As an undesired consequence the associative class has an own ID. This implies, that the persistence would tolerate several links between a Client and an Account, even with contradictory values of the attribute isOwner. This is certainly not desirable.
A better solution would be to make the associative class have a primary key composed of the Client and the Account linked together. How to accomplish this with JPA has to be found out.
The text was updated successfully, but these errors were encountered:
AccountAccess is intended as an associative class, that is a materialization of an association between
Client
andAccount
. The meaning is: TheClient
has the right to manage theAccount
. The associative class is necessary, as the association "Client can manage Account" has an attribute which states, if theClient
is the owner of theAccount
, or only a manager.It was quickly implemented as a subclass of
EntityBase<AccountAccess>
. As an undesired consequence the associative class has an own ID. This implies, that the persistence would tolerate several links between aClient
and anAccount
, even with contradictory values of the attributeisOwner
. This is certainly not desirable.A better solution would be to make the associative class have a primary key composed of the
Client
and theAccount
linked together. How to accomplish this with JPA has to be found out.The text was updated successfully, but these errors were encountered: