-->
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: @Index ignored when hibernate.hbm2ddl.auto=update
PostPosted: Wed Jan 03, 2007 3:06 pm 
Newbie

Joined: Wed Jan 03, 2007 1:57 pm
Posts: 2
Hi. I'm using Hibernate 3.2.1 in JBoss 4.0.5GA on MySQL 5.0.27.

I noticed that if hibernate.hbm2ddl.auto (in the jars persistence.xml) is set to update, no indices are created for fields annotated with @Index, even when the table itself must be created.

When I set hibernate.hbm2ddl.auto=create, the indices are created. If hibernate.hbm2ddl.auto is later set to update, the indices disappear from the database.

Is this by design? Even if so, it's problematic for me: How would I add a new @Entity with some @Index-ed fields to an existing database without losing existing data?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 8:10 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
this is probably a bug in tools. Patch welcome :-)

_________________
Emmanuel


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.