hibernatehbm2ddl

How to make hibernate hbm2ddl generate SQL with semicolon?


I use hibernate hbm2ddl to generate db schema script from entity classes. It works well but each line ends without a semicolon, which makes me have to manually add them. Is there any way to save me from this stupid job?


Solution

  • using SchemaExport directly it is simple:

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