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

前端 未结 13 2497
轮回少年
轮回少年 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条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 05:23

    To whom searches for default value...

    It is written in the source code at version 2.0.5 of spring-boot and 1.1.0 at JpaProperties:

        /**
         * DDL mode. This is actually a shortcut for the "hibernate.hbm2ddl.auto"
         * property. Defaults to "create-drop" when using an embedded database and no
         * schema manager was detected. Otherwise, defaults to "none".
         */
        private String ddlAuto;
    

提交回复
热议问题