-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Complex data model and hibernate
PostPosted: Fri Apr 22, 2005 11:16 am 
Newbie

Joined: Fri Apr 22, 2005 10:40 am
Posts: 9
Hello all,

I am trying to create an inheritance model for 2 objects

Person and Employee, where the relation between the 2 of them is:

Employee extends Person.

In the other side my legacy relational model includes 3 tables


Person: Table with all the details of the person including a person_id as a PK

InterfaceTable: a table that works as an interface between our person table and our Employee table, used inside the data model as an isolation layer (it translates between employee_ids and person_ids), It includes both a person_id and an employee_id

Employee table: Table with the employee details including an employee_id as PK

Would somebody help me trying to find the best aproach for the mapping of this situation?

Thanks in advance


Hibernate version: 3.0.1


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.