Example usage for org.hibernate.boot.model.naming ImplicitPrimaryKeyJoinColumnNameSource getReferencedPrimaryKeyColumnName

List of usage examples for org.hibernate.boot.model.naming ImplicitPrimaryKeyJoinColumnNameSource getReferencedPrimaryKeyColumnName

Introduction

In this page you can find the example usage for org.hibernate.boot.model.naming ImplicitPrimaryKeyJoinColumnNameSource getReferencedPrimaryKeyColumnName.

Prototype

Identifier getReferencedPrimaryKeyColumnName();

Source Link

Document

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.

Usage

From source file:com.evolveum.midpoint.repo.sql.util.MidPointImplicitNamingStrategy.java

License:Apache License

@Override
public Identifier determinePrimaryKeyJoinColumnName(ImplicitPrimaryKeyJoinColumnNameSource source) {
    Identifier i = super.determinePrimaryKeyJoinColumnName(source);

    LOGGER.trace("determinePrimaryKeyJoinColumnName {} {} -> {}", source.getReferencedTableName(),
            source.getReferencedPrimaryKeyColumnName(), i);

    return i;/*from  w  w  w .  j  a v  a 2s . co  m*/
}