Class NaturalIdCacheKey

  • All Implemented Interfaces:

    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • NaturalIdCacheKey

        public NaturalIdCacheKey​(Object naturalIdValues,
                                 String entityName,
                                 String tenantId,
                                 int hashCode)
    • Method Detail

      • getEntityName

        public String getEntityName()
      • getTenantId

        public String getTenantId()
      • getNaturalIdValues

        public Object getNaturalIdValues()
      • hashCode

        public int hashCode()
        hashCode in class Object