package selling.sunshine.form;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by sunshine on 4/19/16.
 */
public class AgentForm {
    @NotNull
    private String name;

    @NotNull
    private String gender;
    
    @NotNull
    @Length(min = 11, max = 11)
    private String phone;

    @NotNull
    private String address;

    @NotNull
    private String password;

    private String wechat;

    @NotNull
    private String memberNum;

    @NotNull
    private String front;

    @NotNull
    private String back;

    private String upper;

    public String getName() {
        return name;
    }

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

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(String memberNum) {
        this.memberNum = memberNum;
    }

    public String getFront() {
        return front;
    }

    public void setFront(String front) {
        this.front = front;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    public String getUpper() {
        return upper;
    }

    public void setUpper(String upper) {
        this.upper = upper;
    }


}

@@ -270,20 +270,16 @@
 gender;%0A
-    
 %0A    @No
@@ -452,37 +452,24 @@
 ng wechat;%0A%0A
-    @NotNull%0A
     private 

make member num not needed