Example usage for org.hibernate.mapping KeyValue isIdentityColumn

List of usage examples for org.hibernate.mapping KeyValue isIdentityColumn

Introduction

In this page you can find the example usage for org.hibernate.mapping KeyValue isIdentityColumn.

Prototype

public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect);

Source Link

Usage

From source file:org.web4thejob.orm.MetaUtil.java

License:Open Source License

public static boolean isIdentityKey(KeyValue key) {
    return key.isIdentityColumn(
            ContextUtil.getBean(HibernateConfiguration.class).getConfiguration()
                    .getIdentifierGeneratorFactory(),
            ContextUtil.getBean(SessionFactoryImplementor.class).getDialect());
}