开发者

How to prevent hbm2ddl from importing init sqls?

开发者 https://www.devze.com 2023-02-18 23:24 出处:网络
Precondition: There is an import.sql file in my 开发者_JS百科classpath. The property \"hibernate.hbm2ddl.auto\" is set to \"create\".

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

精彩评论

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