-->
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: any example of recursive associaion. pls help!
PostPosted: Sun Dec 11, 2005 11:22 pm 
Newbie

Joined: Thu Dec 01, 2005 3:43 am
Posts: 11
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1

Hello
i have an emploeyee table with the following fields:

CREATE TABLE employee
(
oid char(15) not null primary key,
boss_oid char(15),
first_name varchar(20),
last_name varchar(20),
birth_date date,
hire_date date,
marital_status char(1)

)type=innodb;

boss_oid is the oid of the supervisior or manager of an employee.

so how can i map this association?

pls reply me in details.
i will be grateful to hibrenate team.


thank you

Chinmoy


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2005 12:39 am 
Newbie

Joined: Tue Mar 22, 2005 6:01 pm
Posts: 13
Location: Sydney, Australia
Why using Hibernate 2.1?

Anyway isn't this basically the same case as the Cat/Kitten example in the beginning of the Hibernate Reference Doc. Just take a look at that and it should be easy to do.

Cheers
Johnny


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.