5 Replies Latest reply on Feb 24, 2006 10:07 AM by Gus Gu

    JBoss4.0.4RC1: tables were dropped

    Gus Gu Expert

      Hi all,

      It was very painful when I tried to migrate to JBoss4.0.4RC1 from EJB3.0RC3. Finally, it worked, but I found that all my data in database were deleted and tables were recreated. My persistence.xml was:

       <persistence-unit name="dvd">
       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
       <property name="hibernate.cache.provider_class"
       <property name="hibernate.treecache.mbean.object_name"

      Later, I changed the line
      <property name="hibernate.hbm2ddl.auto" value="create-drop"/>

      <property name="hibernate.hbm2ddl.auto" value="none"/>

      and recreated new tables, but I found parts of my tables were dropped, and some of them remained. I do not know what is wrong with persistence.xml. Any help would be appreciated. Thanks in advance.