Index not created by SchemaUpdate
---------------------------------
Key: HHH-1012
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1012
Project: Hibernate Core
Issue Type: New Feature
Components: metamodel
Affects Versions: 3.2.5
Environment: Windows XP, MySQL/PostgreSQL
Reporter: Xavier Farret
Assignee: Steve Ebersole
Priority: Minor
Fix For: 3.2.x, 3.3.x, 3.5.0-Beta-2
Attachments: Indexes.patch
i'm using an hbm.xml as describe below and the 'hibernate.hbm2ddl.auto' is
egal to update.
<class table="featurestat" name=".....">
<id name="id" type="long"
column="idFeatureStat">
<generator class="increment"/>
</id>
<properties name="fsUniqueValue" unique="true">
....
</properties>
<property name="frequency" .../>
<property name="idFatherFeature"
index="FeatStatDocExtSectFeat" not-null="true" type="long"
column="..."/>
....
</class>
Indexes for pk or unique key are well created, but the index explicity named
'FeatStatDocExtSectFeat' is never created. If i put the property
'hibernate.hbm2ddl.auto' in the cfg.xml as 'create' the index is created.
But in my case i have to set my property 'hibernate.hbm2ddl.auto' to update.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: