类 NaturalIdCacheKey

  • 所有已实现的接口:
    Serializable

    public class NaturalIdCacheKey
    extends Object
    implements Serializable
    Defines a key for caching natural identifier resolutions into the second level cache. This was named org.hibernate.cache.spi.NaturalIdCacheKey in Hibernate until version 5. Temporarily maintained as a reference while all components catch up with the refactoring to the caching interfaces.
    作者:
    Eric Dalquist, Steve Ebersole
    另请参阅:
    序列化表格
    • 构造器详细资料

      • NaturalIdCacheKey

        public NaturalIdCacheKey​(Object[] naturalIdValues,
                                 Type[] propertyTypes,
                                 int[] naturalIdPropertyIndexes,
                                 String entityName,
                                 SharedSessionContractImplementor session)
        Construct a new key for a caching natural identifier resolutions into the second level cache.
        参数:
        naturalIdValues - The naturalIdValues associated with the cached data
        propertyTypes -
        naturalIdPropertyIndexes -
        session - The originating session