I have a class
public class Expense {
@Id
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String expense_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String title;
@Field( type = FieldType.String, index = FieldIndex.not_analyzed)
private String spender_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String approver_id;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String datetime; //yyy-MM-dd HH:mm:ss
@Field( type = FieldType.String, index = FieldIndex.not_analyzed)
private List managers_chain;
private String description;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String category;
private Double amount;
@JsonSerialize
@Field(type = FieldType.Object)
private Source source;
@Field(type = FieldType.String, index = FieldIndex.not_analyzed)
private String status;
@Field(type = FieldType.Attachment)
private Attachment proof;
public String getStatus() {
return status;
}
public Attachment getProof() {
return proof;
}
public void setProof(Attachment proof) {
this.proof = proof;
}
}
When I run the spring boot app, it results in following error. How do I fix it?
MapperParsingException[Mapping definition for [proof] has unsupported parameters: [store : false]]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]