开发者

How to prevent hbm2ddl from importing init sqls?

Precondition:

  1. There is an import.sql file in my 开发者_JS百科classpath.
  2. The property "hibernate.hbm2ddl.auto" is set to "create".

Then, how to prevent hbm2ddl from import the init sqls, without delete the import file or modify the "hibernate.hbm2ddl.auto" property?


Since Hibernate 3.6 you can override default name of the import file with hibernate.hbm2ddl.import_files property. So, you can set a name of nonexistent file there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜