2 Replies Latest reply on Mar 14, 2006 1:27 PM by Ivaylo Kabakov

    Database empty after JBoss restart

    Markus Döring Newbie

      i'm developing a small web application to test out how jboss works.

      I'm using a MySQL 5.0 database.

      Everything works fine. The data are in the database (MySQL Admin shows XX rows, ect.) and i retrive the data correct when i'm using EQL Statements.

      But always when i stop jboss and restart it, the database is complete empty.

      My persistence.xml looks like that:

       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>

      So what could be the problem?