-
1. Re: Exporting DDL for production
calca Dec 5, 2011 10:17 AM (in response to ossa)Hey, this may help you
-
2. Re: Exporting DDL for production
ossa Dec 6, 2011 12:12 PM (in response to calca)awsome, that is what i m looking for! i shall try it tomorrow when i m in the office.
-
3. Re: Exporting DDL for production
swiderski.maciej Dec 6, 2011 12:43 PM (in response to ossa)1 of 1 people found this helpfulAdditionally you could you JBoss Tools to generate DDL, for more information please take a look at: http://docs.jboss.org/tools/3.2.0.GA/en/hibernatetools/html/plugins.html#generate_ddl_entities_with_hibernate
-
4. Re: Exporting DDL for production
ossa Dec 7, 2011 8:37 PM (in response to ossa)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);