Example usage for org.hibernate.boot.model.naming ImplicitForeignKeyNameSource getTableName

List of usage examples for org.hibernate.boot.model.naming ImplicitForeignKeyNameSource getTableName

Introduction

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

Prototype

public Identifier getTableName();

Source Link

Usage

From source file:org.ligoj.bootstrap.core.dao.ImplicitNamingStrategyNiceJpaImpl.java

License:MIT License

@Override
public Identifier determineForeignKeyName(final ImplicitForeignKeyNameSource source) {
    return toIdentifier(Constraint.generateName("FK_", new Table(source.getTableName().getText()),
            toColumns(source.getColumnNames())), source.getBuildingContext());
}