简单数(1)
如果需要,使用SchemaExport为目标数据库生成一个脚本。就像是
AnnotationConfiguration configuration = new AnnotationConfiguration();
configuration
.addAnnotatedClass(.class)
.setProperty(Environment.USER, )
.setProperty(Environment.PASS, )
.setProperty(Environment.URL, )
.setProperty(Environment.DIALECT, )
.setProperty(Environment.DRIVER, );
SchemaExport schema = new SchemaExport(configuration);
schema.setOutputFile("schema.sql");
schema.create(, );