From 39e4e8f323af5e7b14c7e84f1aa838ea7ac547e8 Mon Sep 17 00:00:00 2001 From: lowgiant Date: Mon, 14 Feb 2022 00:01:28 +0900 Subject: [PATCH] test: fix Get Howto Json [#345] --- .../com/bancow/bancowback/domain/sub/howto/entity/Howto.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring/src/main/java/com/bancow/bancowback/domain/sub/howto/entity/Howto.java b/spring/src/main/java/com/bancow/bancowback/domain/sub/howto/entity/Howto.java index 2d693583..8eca9431 100644 --- a/spring/src/main/java/com/bancow/bancowback/domain/sub/howto/entity/Howto.java +++ b/spring/src/main/java/com/bancow/bancowback/domain/sub/howto/entity/Howto.java @@ -6,6 +6,8 @@ import javax.persistence.GenerationType; import javax.persistence.Id; +import com.fasterxml.jackson.annotation.JsonProperty; + import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; @@ -22,9 +24,11 @@ public class Howto { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; + @JsonProperty("movie_name") @Column(name = "movie_name", nullable = false) private String movieName; + @JsonProperty("movie_url") @Column(name = "movie_url", nullable = false) private String movieUrl; }