package com.velo.cityon.api.vo;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;


@Document(collection="post")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PostVO {
	@Id
	private String id;
	private String type;
	private String title;
	private Integer likeCount;
	private Integer hitCount;
	private Integer replyCount;
	private String writer;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss Z")
	private Date date;

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getLikeCount() {
		return likeCount;
	}
	public void setLikeCount(Integer likeCount) {
		this.likeCount = likeCount;
	}
	public Integer getHitCount() {
		return hitCount;
	}
	public void setHitCount(Integer hitCount) {
		this.hitCount = hitCount;
	}
	public Integer getReplyCount() {
		return replyCount;
	}
	public void setReplyCount(Integer replyCount) {
		this.replyCount = replyCount;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		this.writer = writer;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}

}

@@ -403,16 +403,41 @@
 ng id;%0D%0A
+%09private String cityId;%0D%0A
 %09private
@@ -747,32 +747,154 @@
 s.id = id;%0D%0A%09%7D%0D%0A
+%09public String getCityId() %7B%0D%0A%09%09return cityId;%0D%0A%09%7D%0D%0A%09public void setCityId(String cityId) %7B%0D%0A%09%09this.cityId = cityId;%0D%0A%09%7D%0D%0A
 %09public String g

add cityId