Class IdentityBean<T extends Serializable>

  • All Implemented Interfaces:
    Serializable

    public abstract class IdentityBean<T extends Serializable>
    extends Object
    implements Serializable
    Convenience base class for objects that have an id property and whose object equality is determined by that identi Defines abstract methods for getting and setting the objects id while also define equals(Object) and hashCode() based on the id value. Additionally, defines a CacheableKey key strategy based on the object id when the object is used in as an argument in a method annotated with Cacheable.
    Author:
    bdferris
    See Also:
    Serialized Form
    • Constructor Detail

      • IdentityBean

        public IdentityBean()
    • Method Detail

      • getId

        public abstract T getId()
      • setId

        public abstract void setId​(T id)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object