- Common ways to obtain Settings
private void myMethod () {Settings s =
new Settings()
SessionFactoryImplementor sessionFactoryImplementor;sessionFactoryImplementor.getSettings()
UnionSubclassEntityPersister unionSubclassEntityPersister;unionSubclassEntityPersister.getFactory().getSettings()
- Smart code suggestions by Codota
}
if ( settings.isAutoCreateSchema() ) new SchemaExport(cfg).create(false, true); if ( settings.isAutoUpdateSchema() ) new SchemaUpdate(cfg).execute(false, true); if ( settings.isAutoDropSchema() ) schemaExport = new SchemaExport(cfg);
if ( settings.isAutoCreateSchema() ) { new SchemaExport( cfg, settings ).create( false, true );
if ( settings.isAutoCreateSchema() ) { new SchemaExport( serviceRegistry, cfg ) .setImportSqlCommandExtractor( serviceRegistry.getService( ImportSqlCommandExtractor.class ) )
if ( settings.isAutoCreateSchema() ) { new SchemaExport( serviceRegistry, cfg ) .setImportSqlCommandExtractor( serviceRegistry.getService( ImportSqlCommandExtractor.class ) )
if ( settings.isAutoCreateSchema() ) { new SchemaExport( metadata ) .setImportSqlCommandExtractor( serviceRegistry.getService( ImportSqlCommandExtractor.class ) )
if ( settings.isAutoCreateSchema() ) { new SchemaExport( metadata ) .setImportSqlCommandExtractor( serviceRegistry.getService( ImportSqlCommandExtractor.class ) )