case class ABCRegisterNewPersonExtended(@jsonIgnore override val timestamp: Long,// = DateTime.now.getMillis,
firstname: String,
surname: String,
emailAddress: String,
campusOfRegistration: String,
dob: Option[LocalDate]) extends XYPersonCommand(timestamp)
When I try to deserialise this case class, I get the following error.
I recall / throught I fixed this about 12 months ago by adding the @jsonProperty annotation to the super class properties .. but alas it is alluding me,
I have found a few issues that relate .. on error, but not to this. (if I remove the timestamp) from the c'tor, by changing abstract class to not have the field..
it all disappears:
thoughts ?
Argument #0 of constructor [constructor for com.soqqo.luap.web.marshalling.ABCRegisterNewPersonExtended, annotations: [null]] has no property name annotation; must have name when multiple-paramater constructor annotated as Creator
com.fasterxml.jackson.databind.JsonMappingException: Argument #0 of constructor [constructor for com.soqqo.luap.web.marshalling.ABCRegisterNewPersonExtended, annotations: [null]] has no property name annotation; must have name when multiple-paramater constructor annotated as Creator
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:268)