Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class PartnerBrandLimit {

        private int fofoId;
        private String brand;
        private Float brandLimit;

        public PartnerBrandLimit(int fofoId, String brand, Float brandLimit) {
                super();
                this.fofoId = fofoId;
                this.brand = brand;
                this.brandLimit = brandLimit;
        }

        public int getFofoId() {
                return fofoId;
        }

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

        public String getBrand() {
                return brand;
        }

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

        public Float getBrandLimit() {
                return brandLimit;
        }

        public void setBrandLimit(Float brandLimit) {
                this.brandLimit = brandLimit;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + Float.floatToIntBits(brandLimit);
                result = prime * result + fofoId;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                PartnerBrandLimit other = (PartnerBrandLimit) obj;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (Float.floatToIntBits(brandLimit) != Float.floatToIntBits(other.brandLimit))
                        return false;
                if (fofoId != other.fofoId)
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "PartnerBrandLimit [fofoId=" + fofoId + ", brand=" + brand + ", brandLimit=" + brandLimit + "]";
        }

}