[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3858) index attribute ignored

Stefan Endrullis (JIRA) noreply at atlassian.com
Sat Apr 11 14:22:17 EDT 2009


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


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