1 Reply Latest reply on Aug 17, 2009 12:34 PM by lvdberg

    Seam and JPA

    staheri

      Hello,
      I am using JBoss seam to make a small project-oriented database I have an entity that I would like to change, add or remove properties
      but how can I do for the changes is automatic in the database
      and columns of the table corresponding changes automatically
      thank you

        • 1. Re: Seam and JPA
          lvdberg

          This is really a Hibernate question, but you should set a property in persistence.xml which does the work or you.



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



          The value can also be create or create-drop.