What are the possible values of the Hibernate hbm2ddl.auto configuration and what do they do

前端 未结 13 2463
轮回少年
轮回少年 2020-11-21 04:47

I really want to know more about the update, export and the values that could be given to hibernate.hbm2ddl.auto
I need to know when to use the update and w

13条回答
  •  醉酒成梦
    2020-11-21 05:27

    • validate: validates the schema, no change happens to the database.
    • update: updates the schema with current execute query.
    • create: creates new schema every time, and destroys previous data.
    • create-drop: drops the schema when the application is stopped or SessionFactory is closed explicitly.

提交回复
热议问题