JBoss Community

Re: Exporting DDL for production

created by Zeliang Huang in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community