문제

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?

도움이 되었습니까?

해결책

using SchemaExport directly it is simple:

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

다른 팁

You can set hibernate.hbm2ddl.delimiter to ; in your Hibernate properties, or set AvailableSettings.HBM2DDL_DELIMITER to ; if you're configuring Hibernate programmatically.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top