This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?" Watch "hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?" New topic
Author

hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
i want to know for now, Is it possible in hibernate to create database schema if schema does not exist otherwise update the schema if it is already exist and there are some modification in hbm file with some value for property hibernate.hbm2ddl.auto .

As per my understanding create value will always drop the previous schema and create the new schema ? update value will not create new schema, it will just update the schem if exist a based on hbm.xml. Right?

Mine scheme is local schema not a production schema.
 
Don't get me started about those stupid light bulbs.
 
subject: hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?