Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1012) Index not
created by SchemaUpdate

Anupam M (JIRA)

2008-08-14


Author LoginPost Reply

  [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30862 ]

Olivier Dedieu commented on HHH-1012:
-------------------------------------

I apply the patch on Hibernate 3.2.6.ga and it works fine (indices are created).

This issue as been reported a long time ago (oct/2005). Please, could you tell me if there will be an official fix for this issue or will it be closed as a "Won't fix" ?

Thanks

> Index not created by SchemaUpdate
> ---------------------------------
>
>           Key: HHH-1012
>           URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1012
>         Project: Hibernate3
>       Issue Type: Improvement
>       Components: metamodel
>   Affects Versions: 3.2.5
>      Environment: Windows XP, MySQL/PostgreSQL
>        Reporter: Xavier Farret
>        Priority: Minor
>      Attachments: Indexes.patch
>
>
> i'm using an hbm.xml as describe below and the 'hibernate.hbm2ddl.auto' is egal to update.
> <class table="featurestat" name=".....">
>   <id name="id" type="long" column="idFeatureStat">
>     <generator class="increment"/>
>   </id>
>    <properties name="fsUniqueValue" unique="true">
>        ....
>    </properties>
>     <property name="frequency" .../>
>    <property name="idFatherFeature" index="FeatStatDocExtSectFeat" not-null="true" type="long" column="..."/>
>    ....
> </class>
> Indexes for pk or unique key are well created, but the index explicity named 'FeatStatDocExtSectFeat' is never created. If i put the property 'hibernate.hbm2ddl.auto' in the cfg.xml as 'create' the index is created. But in my case i have to set my property 'hibernate.hbm2ddl.auto' to update.

--
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.