-->
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: Column Indices supported by Hibernate (for MySql)?
PostPosted: Mon Nov 03, 2008 6:45 am 
Beginner
Beginner

Joined: Thu Oct 04, 2007 12:22 pm
Posts: 48
After trying manually to set indices for colums without success I read some notes within forums and mailing lists, that it is a known issue for hibernate not to support index definition - but the reason was not cleared.

So can anyone give me an official source or an information whether indexing ist supported (and how it is done) and if not - why?

Thanks in advanced

Hibernate version:
3.3

Name and version of the database you are using:
MySql 5.1.11


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2008 7:39 am 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
Indexes are supported by the schema generation tools. See http://www.hibernate.org/hib_docs/v3/re ... etguide-s1

It supports both single- and multi-column indexes/unique keys by setting values for the index, unique or unique-key attributes in the mapping files.

This works when creating new a schema only. The SchemaUpdate only works with unique keys.


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.