20.2.6. Incremental Schema Updates


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 -cphibernate_classpathsorg.hibernate.tool.hbm2ddl.SchemaUpdate options mapping_files
Expand
Table 20.4. SchemaUpdate Command Line Options
Option Description
--quiet do not output the script to stdout
--text do not export the script to the database
--naming=eg.MyNamingStrategy select a NamingStrategy
--properties=hibernate.properties read database properties from a file
--config=hibernate.cfg.xml specify a .cfg.xml file
You can embed SchemaUpdate in your application:
Configuration cfg = ....;
new SchemaUpdate(cfg).execute(false);
Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat