/**
 * This class is generated by jOOQ
 */
package my.alphatheta.locasee.db.tables.pojos;


import java.sql.Timestamp;


/**
 * This class is generated by jOOQ.
 */
public class PersonaProfile {


    Integer profileId;
    String intContactNo;
    Short age;
    Timestamp ageUpdateTime;
    String gender;
    String city;
    String country;
    Long unixModifiedTimeMillis;

    public PersonaProfile() {
    }

    public PersonaProfile(PersonaProfile value) {
        this.profileId = value.profileId;
        this.intContactNo = value.intContactNo;
        this.age = value.age;
        this.ageUpdateTime = value.ageUpdateTime;
        this.gender = value.gender;
        this.city = value.city;
        this.country = value.country;
        this.unixModifiedTimeMillis = value.unixModifiedTimeMillis;
    }

    public PersonaProfile(
            Integer profileId,
            String intContactNo,
            Short age,
            Timestamp ageUpdateTime,
            String gender,
            String city,
            String country,
            Long unixModifiedTimeMillis
    ) {
        this.profileId = profileId;
        this.intContactNo = intContactNo;
        this.age = age;
        this.ageUpdateTime = ageUpdateTime;
        this.gender = gender;
        this.city = city;
        this.country = country;
        this.unixModifiedTimeMillis = unixModifiedTimeMillis;
    }

    public Integer getProfileId() {
        return this.profileId;
    }

    public PersonaProfile setProfileId(Integer profileId) {
        this.profileId = profileId;
        return this;
    }

    public String getIntContactNo() {
        return this.intContactNo;
    }

    public PersonaProfile setIntContactNo(String intContactNo) {
        this.intContactNo = intContactNo;
        return this;
    }

    public Short getAge() {
        return this.age;
    }

    public PersonaProfile setAge(Short age) {
        this.age = age;
        return this;
    }

    public Timestamp getAgeUpdateTime() {
        return this.ageUpdateTime;
    }

    public PersonaProfile setAgeUpdateTime(Timestamp ageUpdateTime) {
        this.ageUpdateTime = ageUpdateTime;
        return this;
    }

    public String getGender() {
        return this.gender;
    }

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

    public String getCity() {
        return this.city;
    }

    public PersonaProfile setCity(String city) {
        this.city = city;
        return this;
    }

    public String getCountry() {
        return this.country;
    }

    public PersonaProfile setCountry(String country) {
        this.country = country;
        return this;
    }

    public Long getUnixModifiedTimeMillis() {
        return this.unixModifiedTimeMillis;
    }

    public PersonaProfile setUnixModifiedTimeMillis(Long unixModifiedTimeMillis) {
        this.unixModifiedTimeMillis = unixModifiedTimeMillis;
        return this;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final PersonaProfile other = (PersonaProfile) obj;
        if (profileId == null) {
            if (other.profileId != null)
                return false;
        } else if (!profileId.equals(other.profileId))
            return false;
        if (intContactNo == null) {
            if (other.intContactNo != null)
                return false;
        } else if (!intContactNo.equals(other.intContactNo))
            return false;
        if (age == null) {
            if (other.age != null)
                return false;
        } else if (!age.equals(other.age))
            return false;
        if (ageUpdateTime == null) {
            if (other.ageUpdateTime != null)
                return false;
        } else if (!ageUpdateTime.equals(other.ageUpdateTime))
            return false;
        if (gender == null) {
            if (other.gender != null)
                return false;
        } else if (!gender.equals(other.gender))
            return false;
        if (city == null) {
            if (other.city != null)
                return false;
        } else if (!city.equals(other.city))
            return false;
        if (country == null) {
            if (other.country != null)
                return false;
        } else if (!country.equals(other.country))
            return false;
        if (unixModifiedTimeMillis == null) {
            if (other.unixModifiedTimeMillis != null)
                return false;
        } else if (!unixModifiedTimeMillis.equals(other.unixModifiedTimeMillis))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((profileId == null) ? 0 : profileId.hashCode());
        result = prime * result + ((intContactNo == null) ? 0 : intContactNo.hashCode());
        result = prime * result + ((age == null) ? 0 : age.hashCode());
        result = prime * result + ((ageUpdateTime == null) ? 0 : ageUpdateTime.hashCode());
        result = prime * result + ((gender == null) ? 0 : gender.hashCode());
        result = prime * result + ((city == null) ? 0 : city.hashCode());
        result = prime * result + ((country == null) ? 0 : country.hashCode());
        result = prime * result + ((unixModifiedTimeMillis == null) ? 0 : unixModifiedTimeMillis.hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("PersonaProfile (");

        sb.append(profileId);
        sb.append(", ").append(intContactNo);
        sb.append(", ").append(age);
        sb.append(", ").append(ageUpdateTime);
        sb.append(", ").append(gender);
        sb.append(", ").append(city);
        sb.append(", ").append(country);
        sb.append(", ").append(unixModifiedTimeMillis);

        sb.append(")");
        return sb.toString();
    }
}
