failed to map source {} to entity
I understand that this error is being thrown because Java is not able to map the custom Date Format which is in json to the Entity Property bookReleaseDate
.Hence we have to add the @JsonProperty Annotation as follows:
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss +SSSS") @Column(name="bookReleaseDate") @Field(type = FieldType.Date, store = true, format = DateFormat.custom, pattern="yyyy-MM-dd HH:mm:ss +SSSS") private Date bookReleaseDate;