0 Replies Latest reply on Dec 16, 2005 10:44 AM by Guillaume lundy

    recreate DB on deloy fails...

    Guillaume lundy Newbie


      I followed the JBoss IDE tutorial and I want to recreate my DB (mySql) at every deploy of my ear file.

      I added the ppty hibernate.hbm2ddl.auto" value="create-drop" in
      the persistance.xml file of my .par
      but it fails.

      I'm sure the persistance.xml is correctly loaded because my tables are created in My SQL but the tables are not re-created when I redeploy my ear.
      Any Idea?

      By the way, Where could I find doc on the parameters of this XML. I looked in the jboss & hibernate sites but I found nothing...

      my persistance.xml:
      (I added some extra spaces to have a correct display)

      < entity-manager >
      < name >sqm_entity_manager< /name >
      < jta-data-source > java:/MySqlSqmDS< /jta-data-source >
      < properties >
      < property name="hibernate.hbm2ddl.auto" value="create"/ >
      < /properties>
      < /entity-manager >