Class PropertyBasedObjectIdGenerator

  • All Implemented Interfaces:
    Serializable

    public class PropertyBasedObjectIdGenerator
    extends com.fasterxml.jackson.annotation.ObjectIdGenerators.PropertyGenerator
    See Also:
    Serialized Form
    • Method Detail

      • canUseFor

        public boolean canUseFor​(com.fasterxml.jackson.annotation.ObjectIdGenerator<?> gen)
        We must override this method, to prevent errors when scopes are the same, but underlying class (on which to access property) is different.
      • forScope

        public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> forScope​(Class<?> scope)
        Specified by:
        forScope in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
      • newForSerialization

        public com.fasterxml.jackson.annotation.ObjectIdGenerator<Object> newForSerialization​(Object context)
        Specified by:
        newForSerialization in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>
      • key

        public com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key​(Object key)
        Specified by:
        key in class com.fasterxml.jackson.annotation.ObjectIdGenerator<Object>