3 Replies Latest reply on Feb 6, 2006 8:41 AM by wesslan

    While restarting records are deleted

    sivasaravanank

      Dear Friends
      While restaring the JBoss server, Records inside the database were deleted.How can i set the records permenently(not remove from database)

      Sivasaravanan.K

        • 1. Re: While restarting records are deleted
          wesslan

           

          "sivasaravanank" wrote:
          Dear Friends
          While restaring the JBoss server, Records inside the database were deleted.How can i set the records permenently(not remove from database)

          Sivasaravanan.K


          Do you maybe have

          in your persistence.xml?
          That means "recreate the DB on every deploy".

          Regards

          • 2. Re: While restarting records are deleted
            wesslan

             

            "wesslan" wrote:
            "sivasaravanank" wrote:
            Dear Friends
            While restaring the JBoss server, Records inside the database were deleted.How can i set the records permenently(not remove from database)

            Sivasaravanan.K


            Do you maybe have
            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
            in your persistence.xml?
            That means "recreate the DB on every deploy".

            Regards


            HTML-crap... :-)

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


            • 3. Re: While restarting records are deleted
              wesslan

              This is surely not my day. First a wrongly posts three messages in the Webwork forum and now two here... :-)

              THIS is the line I was meaning to write:
              < property name="hibernate.hbm2ddl.auto" value="create-drop"/ >