Hi,
Refer to this forum “What is the best way to associate an inherited key” at http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-11446-view-next.html
The moderator said: MyEclipse doesn’t support one-to-one or inheritance mapping, because we can decide what you want from database metadata.
Is that means: MyEclipse do not support hibernate Inheritance Mapping?
In my class diagram I hava Staff class, Student class which is inherit from Person class (superclass). I used hibernate reverse engineering in myeclipse, so I created 3 tables. The two subclass tables (staff and student) have primary key associations to the superclass table (so the relational model is actually a one-to-one association). I refer this page: http://www.hibernate.org/hib_docs/reference/en/html/inheritance.html
to design my tables. I tried to use table per subclass as my inheritance mapping strategy. After did the hibernate reverse engineering, the 2 subclass did not extends from person. It only support the normal associations which are like more in one to many relation.
I want to do Object Relational Mapping, but I’m not sure the approach I used is right or not. Honestly, I’m new to MyEclipse and hibernate. Anyone can help me out?
Thanks in advance for any hints
Regards
-paoh- 🙂