Subversion Repositories SmartDukaan

Rev

Rev 21923 | Rev 22242 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

public class CustomCustomer {
        private String firstName;
        private String lastName;
        private String dateOfBirth;
        private String emailId;
        private String mobileNumber;
        private int customerAddressId;
        private CustomAddress address;
        
        public String getFirstName() {
                return firstName;
        }
        public void setFirstName(String firstName) {
                this.firstName = firstName;
        }
        public String getLastName() {
                return lastName;
        }
        public void setLastName(String lastName) {
                this.lastName = lastName;
        }
        public String getDateOfBirth() {
                return dateOfBirth;
        }
        public void setDateOfBirth(String dateOfBirth) {
                this.dateOfBirth = dateOfBirth;
        }
        
        public String getEmailId() {
                return emailId;
        }
        public void setEmailId(String emailId) {
                this.emailId = emailId;
        }
        public String getMobileNumber() {
                return mobileNumber;
        }
        public void setMobileNumber(String mobileNumber) {
                this.mobileNumber = mobileNumber;
        }
        public CustomAddress getAddress() {
                return address;
        }
        public void setAddress(CustomAddress address) {
                this.address = address;
        }
        public int getCustomerAddressId() {
                return customerAddressId;
        }
        public void setCustomerAddressId(int customerAddressId) {
                this.customerAddressId = customerAddressId;
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((address == null) ? 0 : address.hashCode());
                result = prime * result + customerAddressId;
                result = prime * result + ((dateOfBirth == null) ? 0 : dateOfBirth.hashCode());
                result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
                result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
                result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
                result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                CustomCustomer other = (CustomCustomer) obj;
                if (address == null) {
                        if (other.address != null)
                                return false;
                } else if (!address.equals(other.address))
                        return false;
                if (customerAddressId != other.customerAddressId)
                        return false;
                if (dateOfBirth == null) {
                        if (other.dateOfBirth != null)
                                return false;
                } else if (!dateOfBirth.equals(other.dateOfBirth))
                        return false;
                if (emailId == null) {
                        if (other.emailId != null)
                                return false;
                } else if (!emailId.equals(other.emailId))
                        return false;
                if (firstName == null) {
                        if (other.firstName != null)
                                return false;
                } else if (!firstName.equals(other.firstName))
                        return false;
                if (lastName == null) {
                        if (other.lastName != null)
                                return false;
                } else if (!lastName.equals(other.lastName))
                        return false;
                if (mobileNumber == null) {
                        if (other.mobileNumber != null)
                                return false;
                } else if (!mobileNumber.equals(other.mobileNumber))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "CustomCustomer [firstName=" + firstName + ", lastName=" + lastName + ", dateOfBirth=" + dateOfBirth
                                + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber + ", customerAddressId=" + customerAddressId
                                + ", address=" + address + "]";
        }
        
        
}