Knowledge Walls
John Peter
Pune, Maharashtra, India
How to use property in Hibernate?
38157 Views is automatically validates and exports DDL to schema when the sessionFactory is created.

By default, It is not doing any creation or modification automatically on db. If user sets below values then it is doing DDL  schema changes automatically.

create - doing creating schema
update - updating existing schema
validate - validate existing schema
create-drop - create and drop the schema automatically when session is starts and ends.
How to use property
# validate
<entry key="" value="validate" />

# update
<entry key="" value="update" />

# create
<entry key="" value="create" />

# create-drop
<entry key="" value="create-drop" />
Best Lessons of "One day One Thing to Know"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details