package common.sunshine.model.selling.event;

import common.sunshine.model.Entity;

/**
 * Created by sunshine on 8/24/16.
 */
public class EventApplication extends Entity {
    private String applicationId;
    private Event event;
    private String donorName;
    private String donorPhone;
    private String doneeName;
    private String doneePhone;
    private String doneeGender;
    private String doneeAddress;
    private String relation;
    
    public EventApplication(String donorName, String donorPhone, String doneeName, String doneePhone, String doneeGender, String doneeAddress, String relation){
    	this.donorName = donorName;
    	this.donorPhone = donorPhone;
    	this.doneeName = doneeName;
    	this.doneePhone = doneePhone;
    	this.doneeGender = doneeGender;
    	this.doneeAddress = doneeAddress;
    	this.relation = relation;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public Event getEvent() {
        return event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }

    public String getDonorName() {
        return donorName;
    }

    public void setDonorName(String donorName) {
        this.donorName = donorName;
    }

    public String getDonorPhone() {
        return donorPhone;
    }

    public void setDonorPhone(String donorPhone) {
        this.donorPhone = donorPhone;
    }

    public String getDoneeName() {
        return doneeName;
    }

    public void setDoneeName(String doneeName) {
        this.doneeName = doneeName;
    }

    public String getDoneePhone() {
        return doneePhone;
    }

    public void setDoneePhone(String doneePhone) {
        this.doneePhone = doneePhone;
    }

    public String getDoneeGender() {
        return doneeGender;
    }

    public void setDoneeGender(String doneeGender) {
        this.doneeGender = doneeGender;
    }

    public String getDoneeAddress() {
        return doneeAddress;
    }

    public void setDoneeAddress(String doneeAddress) {
        this.doneeAddress = doneeAddress;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }
}

@@ -446,16 +446,39 @@
 on;%0A    
+private String wishes;%0A
 %0A    pub
@@ -632,16 +632,35 @@
 tion
-)
+, String wishes) 
 %7B%0A    
-%09
+    
 this
@@ -679,33 +679,36 @@
  donorName;%0A    
-%09
+    
 this.donorPhone 
@@ -717,33 +717,36 @@
 donorPhone;%0A    
-%09
+    
 this.doneeName =
@@ -757,25 +757,28 @@
 eeName;%0A    
-%09
+    
 this.doneePh
@@ -795,25 +795,28 @@
 ePhone;%0A    
-%09
+    
 this.doneeGe
@@ -835,25 +835,28 @@
 Gender;%0A    
-%09
+    
 this.doneeAd
@@ -885,9 +885,12 @@
     
-%09
+    
 this
@@ -903,32 +903,62 @@
 ion = relation;%0A
+        this.wishes = wishes;%0A
     %7D%0A%0A    publi
@@ -2420,11 +2420,153 @@
 n;%0A    %7D
+%0A%0A    public String getWishes() %7B%0A        return wishes;%0A    %7D%0A%0A    public void setWishes(String wishes) %7B%0A        this.wishes = wishes;%0A    %7D
 %0A%7D%0A

add column wishes