Example usage for org.hibernate.persister.collection CollectionPersister getRole

List of usage examples for org.hibernate.persister.collection CollectionPersister getRole

Introduction

In this page you can find the example usage for org.hibernate.persister.collection CollectionPersister getRole.

Prototype

String getRole();

Source Link

Document

Get the name of this collection role (the fully qualified class name, extended by a "property path")

Usage

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

License:Open Source License

@Override
public Object createCollectionKey(Object id, CollectionPersister persister, SessionFactoryImplementor factory,
        String tenantIdentifier) {
    return new CacheKeyImpl(id, persister.getKeyType(), persister.getRole(), tenantIdentifier, factory);
}

From source file:org.apache.ignite.cache.hibernate.HibernateKeyWrapper.java

License:Apache License

/**
 * @param id ID.//  w  ww.  j  av  a  2  s . c  o  m
 * @param persister Persister.
 * @param tenantIdentifier Tenant ID.
 * @return Cache key.
 * @see DefaultCacheKeysFactory#staticCreateCollectionKey(Object, CollectionPersister, SessionFactoryImplementor, String)
 */
static Object staticCreateCollectionKey(Object id, CollectionPersister persister, String tenantIdentifier) {
    return new HibernateKeyWrapper(id, persister.getRole(), tenantIdentifier);
}