-->
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: @JoinTableIndexes annotation?
PostPosted: Sat Jul 28, 2007 8:45 pm 
Newbie

Joined: Sat Jul 28, 2007 8:27 pm
Posts: 1
Hi,
Has there been any action on the idea for a @JoinTableIndexes annotation as suggested in http://opensource.atlassian.com/projects/hibernate/browse/ANN-630?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 3:41 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
nobody answered my question in the case, so no.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 21, 2009 4:49 am 
Newbie

Joined: Wed Jan 21, 2009 3:27 am
Posts: 1
@JoinTableIndexes would be very useful.

The generated association tables do not have a Primary Key when the associations/collections are not indexed (with @IndexColumn).

In that case, the appropriate Foreign Keys are generated (as indicated by Len Trigg on the other forum), but Hibernate won't create indexes on the corresponding columns.

Until a proper solution is available, indexing the associations/collections may be an acceptable workaround. It would avoid the burden of creating the column indexes manually, and the join performance improvement would largely compensate for the update performance hit in most cases. This trick however requires to turn Set properties into List properties.

_________________
Julien Dufour


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.