Spring/Hibernate testing: Inserting test data after DDL creation

后端 未结 3 390
北海茫月
北海茫月 2021-01-31 00:10

I have a Spring/Hibernate webapp that has some integration tests that run on an in-memory HSQL database. Hibernate takes this blank database and creates all of my test tables a

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 00:20

    In hibernate 3.6 the configuration that allows to run arbitrary sql commands is:

    hibernate.hbm2ddl.import_files

    See in http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/, noticing there is an error in the documentation: the property is import_files, with an s in the end.

提交回复
热议问题