tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Articles > Hibernate > What are the possible values of the Hibernate hbm2ddl.auto configuration

What are the possible values of the Hibernate hbm2ddl.auto configuration

Hibernate allows validate, update, create, create-drop and none for hbm2ddl.auto property.

validate: validate the existing schema, makes no changes to the database.

update: update the existing schema.

create: creates the schema, destroying previous data.

create-drop: drop the schema when the SessionFactory is closed explicitly, typically when the application is stopped.

none: does nothing with the schema, makes no changes to the database.


 
  


  
bl  br