package com.danchu.momuck.vo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Food {
	
	@JsonProperty("seq") private int seq;
	@JsonProperty("name") private String name;
	@JsonProperty("price") private int price;
	@JsonProperty("category") private String category;
	@JsonProperty("avg_score") private float avgScore;	
	@JsonProperty("image_main") private String imageMain;	
	@JsonProperty("image_extra") private String imageExtra;	
	@JsonProperty("created") private Date created;
	@JsonProperty("restaurant_seq") private int restaurantSeq;
	
	public Food() {
		super();
	}

	public Food(int seq, String name, int price, String category, float avgScore, String imageMain, String imageExtra,
			Date created, int restaurantSeq) {
		super();
		this.seq = seq;
		this.name = name;
		this.price = price;
		this.category = category;
		this.avgScore = avgScore;
		this.imageMain = imageMain;
		this.imageExtra = imageExtra;
		this.created = created;
		this.restaurantSeq = restaurantSeq;
	}

	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 int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public float getAvgScore() {
		return avgScore;
	}

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

	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;
	}

	public int getRestaurantSeq() {
		return restaurantSeq;
	}

	public void setRestaurantSeq(int restaurantSeq) {
		this.restaurantSeq = restaurantSeq;
	}

	@Override
	public String toString() {
		return "Food [seq=" + seq + ", name=" + name + ", price=" + price + ", category=" + category + ", avgScore="
				+ avgScore + ", imageMain=" + imageMain + ", imageExtra=" + imageExtra + ", created=" + created
				+ ", restaurantSeq=" + restaurantSeq + "]";
	}
	
}

@@ -130,160 +130,68 @@
 %0A%09%0A%09
-@JsonProperty(%22seq%22) private int seq;%0A%09@JsonProperty(%22name%22) private String name;%0A%09@JsonProperty(%22price%22) private int price;%0A%09@JsonProperty(%22category%22) 
+private int seq;%0A%09private String name;%0A%09private int price;%0A%09
 priv
@@ -211,16 +211,18 @@
 tegory;%0A
+%09%0A
 %09@JsonPr
@@ -241,16 +241,18 @@
 score%22) 
+%0A%09
 private 
@@ -266,16 +266,17 @@
 vgScore;
+%0A
 %09%0A%09@Json
@@ -298,16 +298,18 @@
 _main%22) 
+%0A%09
 private 
@@ -325,16 +325,17 @@
 ageMain;
+%0A
 %09%0A%09@Json
@@ -357,17 +357,18 @@
 _extra%22)
- 
+%0A%09
 private 
@@ -392,33 +392,10 @@
 ;%09%0A%09
-@JsonProperty(%22created%22) 
+%0A%09
 priv
@@ -412,16 +412,18 @@
 reated;%0A
+%09%0A
 %09@JsonPr
@@ -447,16 +447,18 @@
 t_seq%22) 
+%0A%09
 private 
@@ -481,451 +481,8 @@
 q;%0A%09
-%0A%09public Food() %7B%0A%09%09super();%0A%09%7D%0A%0A%09public Food(int seq, String name, int price, String category, float avgScore, String imageMain, String imageExtra,%0A%09%09%09Date created, int restaurantSeq) %7B%0A%09%09super();%0A%09%09this.seq = seq;%0A%09%09this.name = name;%0A%09%09this.price = price;%0A%09%09this.category = category;%0A%09%09this.avgScore = avgScore;%0A%09%09this.imageMain = imageMain;%0A%09%09this.imageExtra = imageExtra;%0A%09%09this.created = created;%0A%09%09this.restaurantSeq = restaurantSeq;%0A%09%7D%0A
 %0A%09pu

Delete Constructor