-->
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.  [ 4 posts ] 
Author Message
 Post subject: role - what happend
PostPosted: Mon Aug 16, 2004 4:05 am 
Newbie

Joined: Mon Jul 12, 2004 6:13 am
Posts: 7
What happen with [b]role[/b] keyword,
I found sample http://www.xylax.net/hibernate:

<set role="names" table="names">
<key column="id" type="string">
<generator class="uuid.hex"/> </key>
<element column="name" type="string"/>
</set>

<class name="Foo" table="foo">
...
<collection name="names" column="name_id" role="names"/>
</class>


But I can't find [b]role[/b] keyword in hibernate-mapping.dtd


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 5:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
role is now name - please read a more up-to date tutorial.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 5:57 am 
Newbie

Joined: Mon Jul 12, 2004 6:13 am
Posts: 7
but what about [b]collection [/b] keyword

and I think 2 cases quite different:
1.when using role - collection definition not linked to parent class
2.when using name - we linked to parent class


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 5:59 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Seriously, you are looking at ancient stuff.

Like....Hibernate 1.x.

Use an up-to-date guide.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.