-->
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: recursive relationships
PostPosted: Wed Mar 24, 2004 1:44 am 
Newbie

Joined: Mon Mar 15, 2004 5:48 am
Posts: 9
I'm using Hibernate 2.1.2 and I was wondering how I would do a mapping for a recursive class relationship. I did a search on the forum but the one I found that pointed to a concrete section in the reference guide didn't exist.

A pointer to a section or example would be appreciated.

e.g. how do I map something like this:

public class Thing
{
....properties...

Thing anotherThing; // may be null
}


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 1:03 am 
Beginner
Beginner

Joined: Tue Mar 30, 2004 5:54 am
Posts: 22
Location: Bangalore
Azahar ...

Yes ... you can make it work ... look at this post
http://forum.hibernate.org/viewtopic.php?t=929450 for the mapping file.

Thanks
Irfani


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.