Example usage for org.hibernate.persister.entity EntityPersister getNaturalIdentifierProperties

List of usage examples for org.hibernate.persister.entity EntityPersister getNaturalIdentifierProperties

Introduction

In this page you can find the example usage for org.hibernate.persister.entity EntityPersister getNaturalIdentifierProperties.

Prototype

int[] getNaturalIdentifierProperties();

Source Link

Document

If the entity defines a natural id ( #hasNaturalIdentifier() ), which properties make up the natural id.

Usage

From source file:com.hazelcast.hibernate.region.HazelcastCacheKeysFactory.java

License:Open Source License

@Override
public Object createNaturalIdKey(Object[] naturalIdValues, EntityPersister persister,
        SharedSessionContractImplementor session) {
    return new NaturalIdCacheKey(naturalIdValues, persister.getPropertyTypes(),
            persister.getNaturalIdentifierProperties(), persister.getRootEntityName(),
            (SessionImplementor) session);
}