File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hibernate.hbm2ddl.auto value to do both the operations i.e create/update on database schema?