-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
beikov
Jun 4, 2022
Replies: 1 comment 1 reply
-
Hey there. You can still use @EntityView(MyEntity.class)
public interface MyEntityView {
@Mapping("date")
@JsonIgnore
LocalDate getDateAsObject();
default String getDate() {
return DateTimeFormatter.ISO_LOCAL_DATE.format(getDateAsObject());
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rclarke1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there. You can still use
@JsonFormat
if you like. Otherwise, you can also use theDateTimeFormatter
API like this in your entity views: