Skip to content

Commit

Permalink
Fixed the View for fields in ReadingList [#401]
Browse files Browse the repository at this point in the history
The View annotation was missing the LibraryUpdate view, so the fields
in a reading list were not being returned with the updates.
  • Loading branch information
mcpierce committed Jul 9, 2020
1 parent 6d46e00 commit 5d13d6b
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -41,17 +41,17 @@ public class ReadingList {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@JsonProperty("id")
@JsonView({View.ComicList.class, View.ReadingList.class})
@JsonView({View.ComicList.class, View.ReadingList.class, View.LibraryUpdate.class})
private Long id;

@Column(name = "name", length = 128)
@JsonProperty("name")
@JsonView({View.ComicList.class, View.ReadingList.class})
@JsonView({View.ComicList.class, View.ReadingList.class, View.LibraryUpdate.class})
private String name;

@Column(name = "summary", length = 256, nullable = true)
@JsonProperty("summary")
@JsonView({View.ComicList.class, View.ReadingList.class})
@JsonView({View.ComicList.class, View.ReadingList.class, View.LibraryUpdate.class})
private String summary;

@JsonProperty("owner")
Expand Down

0 comments on commit 5d13d6b

Please sign in to comment.