diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java index 30d7cef..3d556b9 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java @@ -1,7 +1,6 @@ package org.ntlab.nemophila.models.accounts; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import org.ntlab.nemophila.models.shops.Shop; @@ -95,7 +94,7 @@ posts.remove(pid); } //投稿数の取得 - @JsonIgnoreProperties(ignoreUnknown=true) + public int getPostsCount() { return posts.size(); }