-->
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.  [ 3 posts ] 
Author Message
 Post subject: <many-to-one ....index=".."> question?
PostPosted: Thu Nov 06, 2008 7:31 pm 
Newbie

Joined: Wed Mar 14, 2007 2:14 pm
Posts: 8
Hi, all,
In many-to-one mapping, what "index" attribute for? Indexed collection related?
<many-to-one name="name" class="test" cascade="none" foreign-key="fk" index="fk">
<column name="col_ID" not-null="true" />
</many-to-one>

Thanks!
-Herbert


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2008 2:58 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
No, it is for creating an index in the database on the column(s) that make up the foreign key. See http://www.hibernate.org/hib_docs/v3/re ... etguide-s1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2008 12:44 pm 
Newbie

Joined: Wed Mar 14, 2007 2:14 pm
Posts: 8
Thanks very much!


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