All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.internal.DynamicFilterAliasGenerator Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
/*
 * 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 )
//			);
//		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy