I want add two names on "id".
like @JsonProperty("value")
and @JsonProperty("id")
How to do it?
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "trainingProgramId", unique = true, nullable = false)
public class TrainingProgram {
`private Integer id;`
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
}