Hi,


I'm trying to design a fairly bland EJB application for managing relationships 
between teachers and students. The skeleton of which is as follows:



<<Entity>> Person

&nbsp; &nbsp; &nbsp;<<Entity>> Teacher

&nbsp; &nbsp; &nbsp;<<Entity>> Student



Person doesn't need to be an entity (as it's never instantiated directly), but 
andromda won't let me generalize a non-entity.



Now, as long as I define an explicit <<Identifier>> for the children 
(TeacherID/StudentID) and not the parent (NO PersonID) everything works as 
expected.



However, if I want to introduce another level into the generalization, such as:



<<Entity>> Person

&nbsp; &nbsp; &nbsp;<<Entity>> Staff

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <<Entity>> Teacher

&nbsp; &nbsp; &nbsp;<<Entity>> Student



to enable the differentiation between a teacher and regular school employee, I 
run into a problem.



If I define StaffID, I receive an XDoclet error (which is the same as if I 
define a PersonID):




Quote:
<<Could not find method getStaffId that is supposed to return the 
PrimKeyField.>>
(end of quote)




If I don't define a StaffID, I receive the same error, but on the automatically 
generated ID:




Quote:
<<Could not find method getId that is supposed to return the PrimKeyField.>>
(end of quote)




Am I missing something obvious with regard to the generalizations and how I 
should be modling them?
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=982#982
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to