From: Emmanuel B. (JIRA) <no...@at...> - 2006-07-06 16:44:59
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-388?pag= e=3Dcomments#action_23554 ]=20 Emmanuel Bernard commented on ANN-388: -------------------------------------- I've lost hours on issues involving @Index which turned out to be user mist= akes. Can you provide a simple runnable test case + the SchemaExport logs? I do h= ave a unit test for such a case and it works for me. org.hibernate.test.annotations.various.IndexTest (Truck) > @Index doesn't create index on Oracle; @Index doesn't override the name o= f auto-created index on a joined column > -------------------------------------------------------------------------= --------------------------------------- > > Key: ANN-388 > URL: http://opensource.atlassian.com/projects/hibernate/browse/A= NN-388 > Project: Hibernate Annotations > Type: Bug > Versions: 3.2.0.cr1 > Environment: hibernate 3.2.0.cr1, Oracle 9i > Reporter: CLEMENT S=C3=A9bastien > > > With the following code, I couldn't create a foreign key index in Oracle. > I use hibernate 3.2.0.cr1. > Thanks=20 > @ManyToOne=20 > @JoinColumn(name=3D"locationOid", nullable=3Dfalse)=20 > @Index(name=3D"FK_location")=20 > public Location getLocation() {=20 > return location; > }=20 --=20 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 |