1 Reply Latest reply on May 5, 2006 5:26 AM by Elvis D,

    Create tables upon EJB deploy

    Elvis D, Novice

      Hi all, sorry for so a basic question but I don't know how/where to set that upon ejb deployment to create/alter relative tables.
      Thank you for answer

      best regards

      elvisd

        • 1. Re: Create tables upon EJB deploy
          Elvis D, Novice

          Hi i have solved this issue:

          here my edited persistence.xml file:

          <?xml version="1.0" encoding="UTF-8"?>
          <persistence>
           <persistence-unit name="gpConn">
           <jta-data-source>java:/gpConn</jta-data-source>
           <properties>
           <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
           </properties>
           </persistence-unit>
          </persistence>

          note the property hibernate.hbm2ddl.auto...

          where can i find possible values to set?