[jboss-user] [jBPM] - Re: Exporting DDL for production

Zeliang Huang do-not-reply at jboss.com
Wed Dec 7 20:37:56 EST 2011


Zeliang Huang [http://community.jboss.org/people/ossa] created the discussion

"Re: Exporting DDL for production"

To view the discussion, visit: http://community.jboss.org/message/640474#640474

--------------------------------------------------------------
The Java alternatively way if anyone else is interested.  

import org.hibernate.cfg.Configuration;
import org.hibernate.ejb.Ejb3Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

......

Configuration cfg = new Ejb3Configuration().configure("org.jbpm.task",null).getHibernateConfiguration();
SchemaExport export = new SchemaExport(cfg);
export.setOutputFile("org.jbpm.task.sql");
export.setDelimiter(";");
export.setFormat(false);
export.execute(true, false, false, false);
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/640474#640474]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111207/e7db452a/attachment.html 


More information about the jboss-user mailing list