org.hibernate.boot.model.naming.ImplicitPrimaryKeyJoinColumnNameSource 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.boot.model.naming;
/**
* Used to help determine the implicit name of columns which are part of a primary-key,
* well simultaneously being part of a foreign-key (join). Generally, this happens in:
* - secondary tables
* - joined inheritance tables
* - one-to-one associations
*
*
* @author Steve Ebersole
*/
public interface ImplicitPrimaryKeyJoinColumnNameSource extends ImplicitNameSource {
/**
* Access the name of the table referenced by the foreign-key described here.
*
* @return The referenced table name.
*/
Identifier getReferencedTableName();
/**
* Access the name of the column that is a primary key column in the
* referenced-table that is referenced by the foreign-key described here.
*
* @return The referenced primary key column name.
*/
Identifier getReferencedPrimaryKeyColumnName();
}