george,
this
design issue should not be dependant on orion or any application server. orion
can help becuase it supports ejb 1.1 and partially ejb 2.0. so there are a few
options, you could write custom entites to manage the relationships, use ejb 1.1
or ejb 2.0. doing an ejb 2.0 implementation means you can model all the
relationships in the ejb architecture, but be careful becaue i dont know how
much of the ejb 2.0 specification orion supports.
for
ejb 2.0, doing the Class, Group and User relationships is pretty straight
forward, all are standard one-to-many relationships. you may just need one
entity bean for the Class entity and have the others as helper classes,
or Local ejbs, or have all three as entity beans.
Class 1-----*
Group
Group 1-----*
User
To do
the roles, is seems like you want 3 relationships. your diagram shows the one to
many relationship
Entity 1-----*
Role.
It
seems like you want the opposite
Entity *-----1
Role.
Or if
you want the entity to be able to map to several different roles, you would
want
Entity *------*
Role.
So
each Entity (Class, Group and User) has the relationship defined. You would not
have an abstract entity. So you would have 3 relationships
like
Class *-------*
Role
Group *-------*
Role
User
*-------* Role
regards, simon
|
- Design strategy George Mardale
- RE: Design strategy Alex Paransky
- RE: Design strategy George Mardale
- RE: Design strategy Owen Fellows
- Re: Design strategy George Mardale
- RE: Design strategy Shields James
- Re: Design strategy Daniel Lopez
- RE: Design strategy Simon Evans
- RE: Design strategy Alex Paransky
- Re: Design strategy George Mardale
- RE: Design strategy BRICKER_JONATHAN_E
- RE: Design strategy Alex Paransky