package com.fqc.springboot.model;

/**
 * Created by fqc on 2016/7/9.
 */
public class Customer {
    private Long id;
    private String name;

//    private Address address;
    private Address address = new Address(); //默认就初始化地址

    public Customer() {
    }

    public Customer(Long id, String name) {
        this.id = id;
        this.name = name;
    }


    /**
     *  /*
     *  only id setter and getter
     *  [
     {
     "id": 1
     },
     {
     "id": 2
     },
     {
     "id": 3
     }
     ]*/

   /* [  id,name getter and setter
    {
        "id": 1,
            "name": "kobe kobe"
    },
    {
        "id": 2,
            "name": "james james"
    },
    {
        "id": 3,
            "name": "jordan jordan"
    }
    ]
     */


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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


    public Address getAddress() {
        return address;
    }

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

}

@@ -352,24 +352,447 @@
 ame;%0A    %7D%0A%0A
+    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A%0A    public Address getAddress() %7B%0A        return address;%0A    %7D%0A%0A    public void setAddress(Address address) %7B%0A        this.address = address;%0A    %7D%0A%0A%0A    //region comment region
 %0A    /**%0A   
@@ -1180,403 +1180,19 @@
  */%0A
-%0A%0A    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A%0A    public Address getAddress() %7B%0A        return address;%0A    %7D%0A%0A    public void setAddress(Address address) %7B%0A        this.address = address;%0A    %7D
+//endregion
 %0A%0A%7D%0A

add comment region