Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
fixes to annotation introspector
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Mar 21, 2014
1 parent 726e889 commit 436ade6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.fasterxml.jackson.annotation.SimpleObjectIdResolver;

import com.fasterxml.jackson.core.*;

Expand Down Expand Up @@ -188,7 +189,9 @@ public ObjectIdInfo findObjectIdInfo(Annotated ann)
Class<?> scope = Object.class; // alternatively would use 'ac.getRawType()'
// and we will assume that there exists property thus named...
return new ObjectIdInfo(idPropName,
scope, ObjectIdGenerators.PropertyGenerator.class);
scope, ObjectIdGenerators.PropertyGenerator.class,
// should we customize Object Id resolver somehow?
SimpleObjectIdResolver.class);
}

return null;
Expand Down Expand Up @@ -1334,5 +1337,3 @@ protected Converter<Object,Object> _converter(XmlAdapter<?,?> adapter, boolean f
return new AdapterConverter(adapter, pt[0], pt[1], forSerialization);
}
}


0 comments on commit 436ade6

Please sign in to comment.