Skip to content

Commit

Permalink
test: fix Get Howto Json [#345]
Browse files Browse the repository at this point in the history
  • Loading branch information
lowgiant committed Feb 13, 2022
1 parent 849b289 commit 39e4e8f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

0 comments on commit 39e4e8f

Please sign in to comment.