3 Replies Latest reply on Jan 13, 2006 4:06 AM by Alexander Hartner

    Entity is removing my table!!!  Why??!

    Fabricio Braga Newbie


      Hi all,

      I have a simple application with my entity bean controling a table named "PERFIL". I'm using MySQL.

      My "persisstence.xml" file is quite simple:

      <entity-manager>
      dm
      org.hibernate.ejb.HibernatePersistence
      <jta-data-source>java:/dmgestaoDatabase</jta-data-source>



      </entity-manager>

      The problem is that every time I stop JBOSS, the table "PERFIL" is removed!

      And when I start JBOSS the table is created again...without the old data. What do I need to do to keep my table and data right there?

      Regards,
      Fabricio Braga