1 Reply Latest reply on Apr 5, 2011 8:56 AM by jorgwel

    Seam alters my DataBase on start up.

    jorgwel

      Hi guys! I really hope you can help me.


      I have a problem using Seam 2.2FInal and seam-gen.


      I had to make some modifications on my database last week, so I ran again seam-gen to update my application.


      After running seam-gen, everything works fine, the problem comes when I start again my application on my jboss server, every column or table I erased from it are again there !!!, I don't know what's happening. I actually can see that seam has added some constraints that I did't put there :S



      Some parameters on the properties file that seam-gen uses:




      database.drop=n
      database.exists=y





      Seam is cool.


      ---
      Jorge

        • 1. Re: Seam alters my DataBase on start up.
          jorgwel

          Solved.


          I just had to change:




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



          to


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





          in the different persistence.xml that come with the application generated by seam-gen. So my problem was with JPA and not with seam-gen.