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

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

Introduction

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

Prototype

public Identifier getTableName();

Source Link

Usage

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

License:Apache License

@Override
public Identifier determineUniqueKeyName(ImplicitUniqueKeyNameSource source) {
    Identifier i = super.determineUniqueKeyName(source);

    LOGGER.trace("determineUniqueKeyName {} {} -> {}", source.getTableName(), source.getColumnNames(), i);

    return i;/*from   w w  w.j a  va2 s.c  o m*/
}

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

License:MIT License

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