diff --git a/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java b/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java new file mode 100644 index 0000000..e255853 --- /dev/null +++ b/src/main/java/org/ntlab/acanthus_server/entities/AnimationJson.java @@ -0,0 +1,31 @@ +package org.ntlab.acanthus_server.entities; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "aid", + "animationName" +}) + +//----------------------------------------------------------------- +// 作品一覧取得用のJsonクラス + +public class AnimationJson { + @JsonProperty("aid") + private Integer aid; + + @JsonProperty("animationName") + private String animationName; + + + public AnimationJson(Animation animation){ + this.aid = animation.getAid(); + this.animationName = animation.getName(); + + } + + +}