org.hibernate.internal.DynamicFilterAliasGenerator 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.internal;
import org.hibernate.NotYetImplementedFor6Exception;
/**
* @author Rob Worsnop
*/
public class DynamicFilterAliasGenerator implements FilterAliasGenerator {
private String[] tables;
private String rootAlias;
public DynamicFilterAliasGenerator(String[] tables, String rootAlias) {
this.tables = tables;
this.rootAlias = rootAlias;
}
@Override
public String getAlias(String table) {
throw new NotYetImplementedFor6Exception();
// if ( table == null ) {
// return rootAlias;
// }
// else {
// return EntityDescriptor.generateTableAlias(
// rootAlias,
// AbstractEntityPersister.getTableId( table, tables )
// );
// }
}
}