facebook

[Closed] Hibernate and the mapping problem

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #269845 Reply

    paoh
    Member

    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- 🙂

    #269899 Reply

    Loyal Water
    Member

    Hi Paoh
    We still don’t support one-to-one. I’m sorry but I’m not familiar enough with Hiberatnate to provide help, but maybe someone else in the forums can help.

    #270027 Reply

    paoh
    Member

    Hi, thank you support-nipun for the responded. Here is some information about inheritance mapping http://www.manning-sandbox.com/thread.jspa?messageID=57143

    #270054 Reply

    Loyal Water
    Member

    Thanks for the link. Appreciate it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Hibernate and the mapping problem

You must be logged in to post in the forum log in