10 Replies Latest reply on Mar 13, 2013 3:27 PM by Sueleyman Vurucu

    7.2.0.Final hibernate.hbm2ddl.auto fails.

    Sueleyman Vurucu Expert

      Hi Guys,


      The uses hibernate version 4.2.0.CR1 in 7.2.0.Final have a problem to generate the database tables. The generation of unique keys fails. Hibernate try to generate evevry key with the same name. 


      11:09:18,559 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 60) HHH000389: Unsuccessful: alter table WMSUSERROLE add constraint NAME_ unique (

      11:09:18,559 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 60) ORA-02264: Name wurde bereits für ein vorhandenes CONSTRAINT verwendet --> That means that the name for the contraint is allready used.


      I switched back to version 4.1.4.Final of hibernate and it works as expected.