Example usage for org.hibernate.tool.hbm2ddl SchemaUpdate SchemaUpdate

List of usage examples for org.hibernate.tool.hbm2ddl SchemaUpdate SchemaUpdate

Introduction

In this page you can find the example usage for org.hibernate.tool.hbm2ddl SchemaUpdate SchemaUpdate.

Prototype

SchemaUpdate

Source Link

Usage

From source file:org.glite.security.voms.admin.persistence.deployer.SchemaDeployer.java

License:Apache License

private void printUpgradeScript() {

    SchemaUpdate updater = new SchemaUpdate();
    updater.setFormat(true);/*from  www. j av a  2  s.co m*/
    EnumSet<TargetType> targetTypes = EnumSet.of(TargetType.STDOUT);

    updater.execute(targetTypes, HibernateFactory.getMetadata());
}