Can not find a (Map) Key deserializer for type [simple type, class ...]
I have a domain object that has a Map:
private Map<AutoHandlingSlotKey, LinkedHashSet<AutoFunction>> autoHandling;
When I serialize the object, I get this:
"autoHandling" : [ "java.util.HashMap", {
} ],
This Map's key is a custom Object:
public class AutoHandlingSlotKey implements Serializable {
private FunctionalArea slot; // ENUM
private String returnView; // ENUM
So, I am not sure how to correct this exception I keep getting when I deserialize the object:
org.codehaus.jackson.map.JsonMappingException: Can not find a (Map) Key deserializer for type [simple type, class com.comcast.ivr.core.domain.AutoHandlingSlotKey]
How to correct this issue? I do not have access to the domain object to modify.