package com.danchu.momuck.vo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Restaurant {
	
	private int seq;
	
	private String name;
	
	@JsonProperty("avg_score")
	private String avgScore;
	
	@JsonProperty("location_coord")
	private String locationCoord;
	
	@JsonProperty("location_text")
	private String locationText;
	
	@JsonProperty("phone_number")
	private String phoneNumber;
	
	@JsonProperty("image_main")
	private String imageMain;
	
	@JsonProperty("image_extra")
	private String imageExtra;
	
	private Date created;

	public int getSeq() {
		return seq;
	}

	public void setSeq(int seq) {
		this.seq = seq;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvgScore() {
		return avgScore;
	}

	public void setAvgScore(String avgScore) {
		this.avgScore = avgScore;
	}

	public String getLocationCoord() {
		return locationCoord;
	}

	public void setLocationCoord(String locationCoord) {
		this.locationCoord = locationCoord;
	}

	public String getLocationText() {
		return locationText;
	}

	public void setLocationText(String locationText) {
		this.locationText = locationText;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getImageMain() {
		return imageMain;
	}

	public void setImageMain(String imageMain) {
		this.imageMain = imageMain;
	}

	public String getImageExtra() {
		return imageExtra;
	}

	public void setImageExtra(String imageExtra) {
		this.imageExtra = imageExtra;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	@Override
	public String toString() {
		return "Restaurant [seq=" + seq + ", name=" + name + ", avgScore=" + avgScore + ", locationCoord="
				+ locationCoord + ", locationText=" + locationText + ", phoneNumber=" + phoneNumber + ", imageMain="
				+ imageMain + ", imageExtra=" + imageExtra + ", created=" + created + "]";
	}
	
}

@@ -46,16 +46,167 @@
 il.Date;
+%0Aimport java.util.List;%0A%0Aimport javax.validation.constraints.Max;%0Aimport javax.validation.constraints.Min;%0Aimport javax.validation.constraints.Pattern;
 %0A%0Aimport
@@ -254,16 +254,60 @@
 perty;%0A%0A
+%0A/**%0A * Restaurant%0A * %0A * @author lhbv1%0A */%0A
 public c
@@ -366,24 +366,158 @@
 ing name;%0A%09%0A
+%09 /**%0A     * @TODO %EC%97%90%EB%9F%AC %EB%A9%94%EC%84%B8%EC%A7%80 %ED%95%9C%EA%B8%80%EB%A1%9C %EB%B3%80%EA%B2%BD %ED%95%84%EC%9A%94, %EC%9D%B8%EC%BD%94%EB%94%A9 %EC%84%B8%ED%8C%85%0A     */%0A%09@Max(value=5, message=%22not allow type%22)%0A%09@Min(value=0, message=%22not allow type%22)%0A
 %09@JsonProper
@@ -686,24 +686,101 @@
 tionText;%0A%09%0A
+%09@Pattern(regexp = %22%5E%5C%5Cd%7B2,3%7D-%5C%5Cd%7B3,4%7D-%5C%5Cd%7B4%7D$%22, message=%22not phone number%22)%0A
 %09@JsonProper
@@ -969,16 +969,44 @@
 created;
+%0A%09%0A%09private List%3CFood%3E food;
 %0A%0A%09publi
@@ -2189,16 +2189,130 @@
 ed;%0A%09%7D%0A%0A
+%09public List%3CFood%3E getFood() %7B%0A%09%09return food;%0A%09%7D%0A%0A%09public void setFood(List%3CFood%3E food) %7B%0A%09%09this.food = food;%0A%09%7D%0A%0A
 %09@Overri
@@ -2548,16 +2548,16 @@
 eMain=%22%0A
-
 %09%09%09%09+ im
@@ -2621,16 +2621,35 @@
 reated +
+ %22, food=%22 + food +
  %22%5D%22;%0A%09%7D

Add List<Food> in Restaurant VO