1 Reply Latest reply on Apr 5, 2007 12:12 PM by wjm

    Initializing database

    jcv

      Hi, i'm playing a little bit with jbpm engine and i've made some changes to the hibernate database definition. How can i reflect this changes on the database creation?

        • 1. Re: Initializing database
          wjm

          If you mean that you'd like to create the database automatically that's easy. You can tell hibernate to do the job for you. See

          http://wiki.jboss.org/wiki/Wiki.jsp?page=UseHibernateToCreateJbpmDB

          for details on how to do that. Otoh, if you want to update your existing database to reflect changes you've made in the mappings and code, you'll have to check to see whether hibernate's automatic schema creation supports changes. I'm not sure about that, and if so, I suspect it's limited support. Probably better to add/remove columns yourself.