Top Description Fields Constructors Methods
org.hibernate.tool.hbm2ddl

public Class SchemaValidator

extends Object
Class Inheritance
Imports
java.io.FileInputStream, java.sql.Connection, .SQLException, java.util.Properties, org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, org.hibernate.cfg.Configuration, .NamingStrategy, .Settings, org.hibernate.dialect.Dialect, org.hibernate.util.ReflectHelper

A commandline tool to update a database schema. May also be called from inside an application.
Author
Christoph Sturm

Field Summary

Modifier and TypeField and Description
private Configuration
private ConnectionHelper
private Dialect
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public
SchemaValidator(Configuration cfg, Properties connectionProperties)

public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

public void
validate()

Perform the validations.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationback to summary
private Configuration configuration
connectionHelperback to summary
private ConnectionHelper connectionHelper
dialectback to summary
private Dialect dialect
logback to summary
private static final Logger log

Constructor Detail

SchemaValidatorback to summary
public SchemaValidator(Configuration cfg) throws HibernateException
SchemaValidatorback to summary
public SchemaValidator(Configuration cfg, Properties connectionProperties) throws HibernateException
SchemaValidatorback to summary
public SchemaValidator(Configuration cfg, Settings settings) throws HibernateException

Method Detail

mainback to summary
public static void main(String[] args)
validateback to summary
public void validate()

Perform the validations.