2012-04-18 62 views
2

我使用hibernate hbm2ddl从实体类生成数据库模式脚本。它运行良好,但每行都没有分号,因此我不得不手动添加它们。有什么办法可以把我从这个愚蠢的工作中拯救出来吗?使用的SchemaExport如何让hibernate hbm2ddl用分号生成sql?

回答

5

直接很简单:

new SchemaExport(config).setDelimiter(";").Execute(...);