Class NaturalIdCacheKey

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

      • NaturalIdCacheKey

        @Internal
        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()
        Overrides:
        hashCode in class Object