jQuery in Action, 2nd edition*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
wood burning stoves
 
subject: hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?
 
Similar Threads
How to keep Hibernate from exporting a schema if one already exists?
database schema definition outside of hbm files?
'hbm2ddl.auto' option in hibernate
Create database schema from Hibernate?
Data Not inserting into Database JPA+Hibernate