Incremental schema updates in Hibernate by R4R Team

The SchemaUpdate tool will update an existing schema with "incremental" changes. The SchemaUpdate depends upon the JDBC metadata API and, as such, will not work with all JDBC drivers. java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaUpdate options mapping_files

In the below table we can understand about the SchemaUpdate Command Line Options:




do not output the script to stdout


do not export the script to the database


select a NamingStrategy

read database properties from a file


specify a .cfg.xml file

Here we can embed SchemaUpdate in application below code:

Configuration cfg = ....;
new SchemaUpdate(cfg).execute(false);
Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!