[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3858?page=c...
]
Elhanan Maayan updated HHH-3858:
--------------------------------
Attachment: TestProject.zip
i was unable to re-produce this behavior, please attach the source which creates this
problem.
index attribute ignored
-----------------------
Key: HHH-3858
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3858
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.3.1
Environment: Hibernate 3.3.1.GA using MySQLDialect
Reporter: Stefan Endrullis
Priority: Minor
Attachments: TestProject.zip
Hibernate does not care about user defined index names (at least when using
MySQLDialect). I've tried to set the index name by specifying the index attribute in
the column tag (I also tried it in the property tag):
<property name="venueValue" index="venue_value">
<column name="venue_value" index="venue_value"
length="10" precision="0" not-null="true"/>
</property>
But hibernate seems to ignore this attribute, at least when "hbm2ddl.auto" is
set to "update". Hibernate always tries (table is not writable) to create a new
index, called FK31DDBD80A32043, for the venue_value column, although there exists already
such an index called venue_value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira