Wednesday 24 December 2014

Hibernate hbm2ddl.auto property


This property is used to specify the action to be taken on database schema, based on the value configured in “hibernate.cfg.xml” file.

Value
Description
validate
validate the schema, makes no changes to the database.
update
update the schema.
create
Drop and re-create the database schema on startup
create-drop
Create and drop the schema at the end of the session.

Example
<property name="hbm2ddl.auto">create</property>



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment