Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.dao.model;

import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
import com.spice.profitmandi.dao.enumuration.fofo.PartnerStatusType;

public class FinanceServicesModel {

        private int fofoId;
        private PartnerStatusType partnerStatusType;
        private ApplicableServiceType applicableType;
        private boolean active; 
        private int brandServiceId;
        private int serviceId;
        private String brand;
        private String name;
        

        
        
        public ApplicableServiceType getApplicableType() {
                return applicableType;
        }

        public void setApplicableType(ApplicableServiceType applicableType) {
                this.applicableType = applicableType;
        }

        public boolean isActive() {
                return active;
        }

        public void setActive(boolean active) {
                this.active = active;
        }

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public PartnerStatusType getPartnerStatusType() {
                return partnerStatusType;
        }

        public void setPartnerStatusType(PartnerStatusType partnerStatusType) {
                this.partnerStatusType = partnerStatusType;
        }

        public int getBrandServiceId() {
                return brandServiceId;
        }

        public void setBrandServiceId(int brandServiceId) {
                this.brandServiceId = brandServiceId;
        }

        public int getServiceId() {
                return serviceId;
        }

        public void setServiceId(int serviceId) {
                this.serviceId = serviceId;
        }

        public String getBrand() {
                return brand;
        }

        public void setBrand(String brand) {
                this.brand = brand;
        }

        public String getName() {
                return name;
        }

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

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + brandServiceId;
                result = prime * result + fofoId;
                result = prime * result + ((name == null) ? 0 : name.hashCode());
                result = prime * result + ((partnerStatusType == null) ? 0 : partnerStatusType.hashCode());
                result = prime * result + serviceId;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                FinanceServicesModel other = (FinanceServicesModel) obj;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (brandServiceId != other.brandServiceId)
                        return false;
                if (fofoId != other.fofoId)
                        return false;
                if (name == null) {
                        if (other.name != null)
                                return false;
                } else if (!name.equals(other.name))
                        return false;
                if (partnerStatusType == null) {
                        if (other.partnerStatusType != null)
                                return false;
                } else if (!partnerStatusType.equals(other.partnerStatusType))
                        return false;
                if (serviceId != other.serviceId)
                        return false;
                return true;
        }

        

        @Override
        public String toString() {
                return "FinanceServicesModel [fofoId=" + fofoId + ", partnerStatusType=" + partnerStatusType
                                + ", applicableType=" + applicableType + ", active=" + active + ", brandServiceId=" + brandServiceId
                                + ", serviceId=" + serviceId + ", brand=" + brand + ", name=" + name + "]";
        }

        public FinanceServicesModel(int fofoId, PartnerStatusType partnerStatusType, ApplicableServiceType applicableType,
                        boolean active, int brandServiceId, int serviceId, String brand, String name) {
                super();
                this.fofoId = fofoId;
                this.partnerStatusType = partnerStatusType;
                this.applicableType = applicableType;
                this.active = active;
                this.brandServiceId = brandServiceId;
                this.serviceId = serviceId;
                this.brand = brand;
                this.name = name;
        }

        

}