1 Reply Latest reply on Jul 29, 2009 7:50 AM by jaikiran pai

    export DDL from EJB3 deployment

    Ricardo Temporal Newbie

      Hi people,

      How can I export the DDL that Jboss generates at the moment of deployment of EJB3 project?
      The reason is that I do not want that Jboss creates or drops any tables in my database automatically, it is important for me to control this manually.

      Please help me or say some documentation where I can find the answer.

      Thanks,
      Temporal.

        • 1. Re: export DDL from EJB3 deployment
          jaikiran pai Master

          Are you talking about the SQLs generated by JPA (/Hibernate) to auto create your tables?

          The reason is that I do not want that Jboss creates or drops any tables in my database automatically, it is important for me to control this manually.


          This can be controlled through the persistence.xml file. If you remove the hibernate.hbm2ddl.auto property from the persistence.xml then the tables will not be created/deleted.