Trying to override a JSON propert to return date in long format. But it does not seem to work.
@JsonIgnore
@JsonProperty("dateTime")
public long getDateTimeInLong() {
return getDateTime().getTime(); //belongs to super class. It is an AspectJ implementation.
}
If I remove the @JsonIgnore
annotation I get Conflicting getter definitions for property "dateTime":
exception.