-->
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: Generating Index annotation
PostPosted: Sat Jan 19, 2008 12:24 pm 
Senior
Senior

Joined: Sat Aug 19, 2006 6:31 pm
Posts: 139
Hi,

I'm trying to see if the tools can generate org.hibernate.annotations.Index annotation based on indexes in the database.

I'm using hibernate tools 3.2.0 beta 9 and MySql 5.0.x.

I see that in JDBCMetaData the indexes are obtained in getIndexInfo() and I do see the index names. However, I don't see org.hibernate.annotations.Index while recursively doing a text search in the source code.

Is the tools supposed to be able to generate those?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 20, 2008 5:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
It is just a matter of someone implementing it in the templates.

But note adding Index blindly based on annotations will in some databases create alot of redundant info (e.g. index on a primary key etc.)

_________________
Max
Don't forget to rate


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.