-->
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: can someone explain index
PostPosted: Tue Jul 27, 2004 5:11 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 2:15 pm
Posts: 35
can someone explain what exactly is the

<index > element for.. when mapping a collection using the
<map element

I have been reading the docs and don't really get what its there for.

TIA,
Paul


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 5:12 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Well, I'd say it could be used to define the index of a map, no?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 5:23 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 2:15 pm
Posts: 35
then why is it required? if I already have a DB design done.. all the indexes are already there, then hibernate shouldn't really worry about creating an index even knowing if an index is there..

Quote:
For indexed collections like maps and lists, we require an <index> element. For lists, this column contains sequential integers numbered from zero.


can someone give me an example of what column they are talking about?

Thanks Christian and others

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 5:24 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It's the index of a Java Map, not a database index.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.