Skip to content

Neighbor property TypeDeserializer for generic class #192

Answered by simonhir
simonhir asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your answer.

I also tried building a custom Deserializer but didn't work out for me as i couldn't figure out how to use the ObjectMapper with a generic type.

Solution/workaround for me was to build a extra class which just extends the generic class (see following example).

public class SpecificLockingResponse extends LockingResponse<Specific> {}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simonhir
Comment options

Answer selected by simonhir
@cowtowncoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants