/*
 * The MIT License
 *
 *   Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr)
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy
 *   of this software and associated documentation files (the "Software"), to deal
 *   in the Software without restriction, including without limitation the rights
 *   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *   copies of the Software, and to permit persons to whom the Software is
 *   furnished to do so, subject to the following conditions:
 *
 *   The above copyright notice and this permission notice shall be included in
 *   all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 *   THE SOFTWARE.
 */

package io.github.benas.jpopulator.beans;

import java.util.Date;
import java.util.List;

/**
 * A java bean for Person type.
 *
 * @author Mahmoud Ben Hassine (mahmoud@benhassine.fr)
 */
public class Person extends Human {

    private String email;

    private Gender gender;

    private Address address;

    private Date birthDate;

    private String phoneNumber;

    private List<String> nicknames;

    public Person() {
    }

    public Person(String name, String email, Gender gender, Address address) {
        super(name);
        this.email = email;
        this.gender = gender;
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Gender getGender() {
        return gender;
    }

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

    public Address getAddress() {
        return address;
    }

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

    public List<String> getNicknames() {
        return nicknames;
    }

    public void setNicknames(List<String> nicknames) {
        this.nicknames = nicknames;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthdate) {
        this.birthDate = birthdate;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

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

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Person{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", email='").append(email).append('\'');
        sb.append(", gender=").append(gender);
        sb.append(", address=").append(address);
        sb.append(", birthDate=").append(birthDate);
        sb.append(", phoneNumber='").append(phoneNumber).append('\'');
        sb.append(", nicknames=").append(nicknames);
        sb.append('}');
        return sb.toString();
    }
}

@@ -1420,37 +1420,39 @@
  Human %7B%0A%0A    pr
-ivate
+otected
  String email;%0A%0A
@@ -1457,21 +1457,23 @@
 %0A%0A    pr
-ivate
+otected
  Gender 
@@ -1487,21 +1487,23 @@
 %0A%0A    pr
-ivate
+otected
  Address
@@ -1519,21 +1519,23 @@
 %0A%0A    pr
-ivate
+otected
  Date bi
@@ -1550,21 +1550,23 @@
 %0A%0A    pr
-ivate
+otected
  String 
@@ -1589,13 +1589,15 @@
   pr
-ivate
+otected
  Lis

make fields protected