-->
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: doubt regarding mapping file
PostPosted: Thu Dec 13, 2007 10:45 am 
Newbie

Joined: Fri Dec 07, 2007 8:58 am
Posts: 8
Guys for one to many / many to one

I saw in the tutorial to use ...



<set name="id" inverse="true">
<key column="no"/>
<one-to-many class="cat"/>
</set>

what if the type is not java.util.Set but int? Is it possible to map? I tried giving <int> and </int> but that doesnt work.

Or is it must t hat java.util.Set needs to be used??


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 13, 2007 11:52 am 
Newbie

Joined: Tue Apr 05, 2005 3:51 am
Posts: 7
Location: Switzerland
A Set is a collection. almost like an array. So your Set can contain whatever you need, Integers if you want.

Hope it helps ...


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.