Hi Folks, I have a little problem. Basically this is my problem:
My application requires an object model that includes a parent, teacher, student and of course each of this type of persons would be able to logon to the application. So i have basically abstracted all the common stuffs like name, title, email, address to an object called person which would correspond to a person table. Then i would have objects parent, teacher, student each which would be types of persons and would have a person_id identifier in addition to their own tables. The User object would basically have just username, password, and the role details and every person would have a user object. I really do not know if am doing it right. i am wondering how to capture a scenerio when a teacher is also a parent. Please anyone has any idea on how i can model this and also represent in hibernate xdoclet mapping. I am using appfuse 1.9.4, jdk 1.5, mysql 5. Thanks in advance.