This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13585|Reply: 0

[Source] DDL-auto attribute of hibernate

[Copy link]
Posted on 2/26/2019 4:22:16 PM | | |
How to configure in the application configuration file


Optional parameters
create deletes the table in the database when it starts, then creates, and does not delete the data table when exiting
create-drop deletes the table in the database when starting, then creates, and deletes the data table when exiting If the table does not have an error
update If the table format is inconsistent at startup, the table is updated, and the original data is retained
validate the project starts the table structure for verification, and if it is inconsistent, an error will be reported

JPA 2.1.1 uses the following configuration:










Previous:discuz post method to automatically hide links
Next:Learn C# learning methods by doing projects
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com