-->
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: Auto relationship. Is it possible
PostPosted: Wed Apr 06, 2005 9:30 am 
Newbie

Joined: Mon Apr 04, 2005 4:28 pm
Posts: 3
Location: São Paulo
Hibernate version:3.0

Mapping documents: no mapping

Code between sessionFactory.openSession() and session.close(): no code

Full stack trace of any exception that occurs:no exception

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

The generated SQL (show_sql=true):no generate

Debug level Hibernate log excerpt:no debug

Could I create a auto relationship using a class??

That´s it, a class has a instance of itself.

Example:

class Person{
private Integer id;
private String name;
private Person father;
// gets and sets

}

How can I do it??? (if it is possible)

Thanks in advance

_________________
Thadeu de Russo e Carmo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 10:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
there is an example in the reference guide.

_________________
Emmanuel


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.