]
Steve Ebersole updated HHH-6473:
--------------------------------
Fix Version/s: (was: 4.x)
hbm2ddl doesn't create Indexes from @Index annotations on
@ManyToMany relations
-------------------------------------------------------------------------------
Key: HHH-6473
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6473
Project: Hibernate Core
Issue Type: New Feature
Components: annotations
Affects Versions: 4.0.0.Beta4
Reporter: Samuel Mendenhall
Priority: Minor
When generating the SQL schema with Hibernate using the hbm2ddl feature the generation of
indexes on ManyToMany relationships like the following is not working:
@ManyToMany()
@JoinTable(name = "REL_FOO_BAR", joinColumns = @JoinColumn(name =
"FOO_FK"), inverseJoinColumns = @JoinColumn(name = "BAR_FK"))
@Index(name = "FOO_BAR_IDX")
The created SQL schema doesn't include an index named USER_ROLES_IDX. With other
relation types (ManyToOne, etc.) the index is created as expected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: