[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3858) index attribute ignored
Elhanan Maayan (JIRA)
noreply at atlassian.com
Mon Apr 13 06:50:17 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list