1 Reply Latest reply on Sep 6, 2007 10:24 PM by hstang

    why not automatic tables creation

    ruscano

      Hi I thought Seam is using hibernate out of the box, so I was expecting to get automatic tables creation based on entities anotations etc on the class, Is something to set somewhere else if I want that to happend , thanks in advance

        • 1. Re: why not automatic tables creation

          if you're using JPA, specify this in your persistence.xml

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


          if you are strictly using hibernate, then you do something similar with hibernate.properties or hibernate.cfg.xml