-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem With Complex Table Mapping
PostPosted: Tue Apr 18, 2006 5:36 am 
Newbie

Joined: Sun Apr 02, 2006 5:37 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2.1

Name and version of the database you are using:
Oracle 9i

Hey,

I'm having a trouble mapping a connecting between 2 of my tables.
We have 2 tables - the simplest "dept", "emp" tables which are mapped to 2 classes.
Class Dept contains 2 properties for emps - 1 for manager and the second for workers (Collection).
How can I map this?
We can add additional fields in the emp table that indicates the property in the depts?

Thanks ahead


--Ram

sternr|@gmail.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 8:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I suggest you have a look at the manual and read the section on Parent-Child mappings. Try a few examples and then apply them to your mapping problem.


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

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.