org.hibernate.tool.schema.internal.DefaultSchemaFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.tool.schema.internal;
import org.hibernate.boot.model.relational.Namespace;
import org.hibernate.boot.model.relational.Sequence;
import org.hibernate.mapping.Table;
import org.hibernate.tool.schema.spi.SchemaFilter;
/**
* Default implementation of the SchemaFilter contract, which is to just include everything.
*/
public class DefaultSchemaFilter implements SchemaFilter {
public static final DefaultSchemaFilter INSTANCE = new DefaultSchemaFilter();
@Override
public boolean includeNamespace( Namespace namespace ) {
return true;
}
@Override
public boolean includeTable( Table table ) {
return true;
}
@Override
public boolean includeSequence( Sequence sequence ) {
return true;
}
}