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

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

Introduction

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

Prototype

public List<Identifier> getColumnNames();

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 ww  w.j a  v  a  2s  .  co  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());
}