How to import initial data to database with Hibernate?

后端 未结 7 478
轻奢々
轻奢々 2020-11-27 11:06

When deploying applications, I often use Hibernate’s capacity to create database schema in order to simplify the deployment. This is easily achievable by configuring hiberna

相关标签:
7条回答
  • 2020-11-27 12:00

    The standard way to do this in JPA is to use the configuration property javax.persistence.sql-load-script-source.

    You can explore various settings related to schema export and test data import listed in Hibernate's AvailableSettings class.

    0 讨论(0)
提交回复
热议问题