Subversion Repositories SmartDukaan

Rev

Rev 29645 | Rev 34194 | 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;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Set;

public class InsuranceModel {
        private String brand;
        private String color;
        private String ram;
        private String memory;
        private LocalDateTime mfgDate;
        private LocalDate wmfgDate;
        private String modelName;
        private float insuranceAmount;
        private String insuranceId;
        private float deviceSellingPrice;
        private String serialNumber;
        private String providerName;
        private String providerId;
        private String underWriterName;
        private String underWriterId;
        private int customerId;
        private String customerEmail;
        private LocalDate dob;
        private int fofoOrderId;
        private int fofoOrderItemId;
        private Set<CustomPaymentOption> paymentOptions;

        public Set<CustomPaymentOption> getPaymentOptions() {
                return paymentOptions;
        }

        public void setPaymentOptions(Set<CustomPaymentOption> paymentOptions) {
                this.paymentOptions = paymentOptions;
        }

        public int getFofoOrderId() {
                return fofoOrderId;
        }

        public void setFofoOrderId(int fofoOrderId) {
                this.fofoOrderId = fofoOrderId;
        }

        public int getFofoOrderItemId() {
                return fofoOrderItemId;
        }

        public void setFofoOrderItemId(int fofoOrderItemId) {
                this.fofoOrderItemId = fofoOrderItemId;
        }

        public String getRam() {
                return ram;
        }

        public void setRam(String ram) {
                this.ram = ram;
        }

        public String getMemory() {
                return memory;
        }

        public void setMemory(String memory) {
                this.memory = memory;
        }

        public LocalDateTime getMfgDate() {
                return mfgDate;
        }

        public void setMfgDate(LocalDateTime mfgDate) {
                this.mfgDate = mfgDate;
        }

        public String getColor() {
                return color;
        }

        public void setColor(String color) {
                this.color = color;
        }

        public String getSerialNumber() {
                return serialNumber;
        }

        public void setSerialNumber(String serialNumber) {
                this.serialNumber = serialNumber;
        }

        public float getDeviceSellingPrice() {
                return deviceSellingPrice;
        }

        public void setDeviceSellingPrice(float deviceSellingPrice) {
                this.deviceSellingPrice = deviceSellingPrice;
        }

        public String getBrand() {
                return brand;
        }

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

        public String getModelName() {
                return modelName;
        }

        public void setModelName(String modelName) {
                this.modelName = modelName;
        }

        public float getInsuranceAmount() {
                return insuranceAmount;
        }

        public void setInsuranceAmount(float insuranceAmount) {
                this.insuranceAmount = insuranceAmount;
        }

        public String getInsuranceId() {
                return insuranceId;
        }

        public void setInsuranceId(String insuranceId) {
                this.insuranceId = insuranceId;
        }

        public String getProviderName() {
                return providerName;
        }

        public void setProviderName(String providerName) {
                this.providerName = providerName;
        }

        public String getProviderId() {
                return providerId;
        }

        public void setProviderId(String providerId) {
                this.providerId = providerId;
        }

        public String getUnderWriterName() {
                return underWriterName;
        }

        public void setUnderWriterName(String underWriterName) {
                this.underWriterName = underWriterName;
        }

        public String getUnderWriterId() {
                return underWriterId;
        }

        public void setUnderWriterId(String underWriterId) {
                this.underWriterId = underWriterId;
        }

        public int getCustomerId() {
                return customerId;
        }

        public void setCustomerId(int customerId) {
                this.customerId = customerId;
        }

        public String getCustomerEmail() {
                return customerEmail;
        }

        public void setCustomerEmail(String customerEmail) {
                this.customerEmail = customerEmail;
        }

        public LocalDate getWmfgDate() {
                return wmfgDate;
        }

        public void setWmfgDate(LocalDate wmfgDate) {
                this.wmfgDate = wmfgDate;
        }

        public LocalDate getDob() {
                return dob;
        }

        public void setDob(LocalDate dob) {
                this.dob = dob;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((brand == null) ? 0 : brand.hashCode());
                result = prime * result + ((color == null) ? 0 : color.hashCode());
                result = prime * result + ((customerEmail == null) ? 0 : customerEmail.hashCode());
                result = prime * result + customerId;
                result = prime * result + Float.floatToIntBits(deviceSellingPrice);
                result = prime * result + ((dob == null) ? 0 : dob.hashCode());
                result = prime * result + fofoOrderId;
                result = prime * result + fofoOrderItemId;
                result = prime * result + Float.floatToIntBits(insuranceAmount);
                result = prime * result + ((insuranceId == null) ? 0 : insuranceId.hashCode());
                result = prime * result + ((memory == null) ? 0 : memory.hashCode());
                result = prime * result + ((mfgDate == null) ? 0 : mfgDate.hashCode());
                result = prime * result + ((modelName == null) ? 0 : modelName.hashCode());
                result = prime * result + ((providerId == null) ? 0 : providerId.hashCode());
                result = prime * result + ((providerName == null) ? 0 : providerName.hashCode());
                result = prime * result + ((ram == null) ? 0 : ram.hashCode());
                result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
                result = prime * result + ((underWriterId == null) ? 0 : underWriterId.hashCode());
                result = prime * result + ((underWriterName == null) ? 0 : underWriterName.hashCode());
                result = prime * result + ((wmfgDate == null) ? 0 : wmfgDate.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;
                InsuranceModel other = (InsuranceModel) obj;
                if (brand == null) {
                        if (other.brand != null)
                                return false;
                } else if (!brand.equals(other.brand))
                        return false;
                if (color == null) {
                        if (other.color != null)
                                return false;
                } else if (!color.equals(other.color))
                        return false;
                if (customerEmail == null) {
                        if (other.customerEmail != null)
                                return false;
                } else if (!customerEmail.equals(other.customerEmail))
                        return false;
                if (customerId != other.customerId)
                        return false;
                if (Float.floatToIntBits(deviceSellingPrice) != Float.floatToIntBits(other.deviceSellingPrice))
                        return false;
                if (dob == null) {
                        if (other.dob != null)
                                return false;
                } else if (!dob.equals(other.dob))
                        return false;
                if (fofoOrderId != other.fofoOrderId)
                        return false;
                if (fofoOrderItemId != other.fofoOrderItemId)
                        return false;
                if (Float.floatToIntBits(insuranceAmount) != Float.floatToIntBits(other.insuranceAmount))
                        return false;
                if (insuranceId == null) {
                        if (other.insuranceId != null)
                                return false;
                } else if (!insuranceId.equals(other.insuranceId))
                        return false;
                if (memory == null) {
                        if (other.memory != null)
                                return false;
                } else if (!memory.equals(other.memory))
                        return false;
                if (mfgDate == null) {
                        if (other.mfgDate != null)
                                return false;
                } else if (!mfgDate.equals(other.mfgDate))
                        return false;
                if (modelName == null) {
                        if (other.modelName != null)
                                return false;
                } else if (!modelName.equals(other.modelName))
                        return false;
                if (providerId == null) {
                        if (other.providerId != null)
                                return false;
                } else if (!providerId.equals(other.providerId))
                        return false;
                if (providerName == null) {
                        if (other.providerName != null)
                                return false;
                } else if (!providerName.equals(other.providerName))
                        return false;
                if (ram == null) {
                        if (other.ram != null)
                                return false;
                } else if (!ram.equals(other.ram))
                        return false;
                if (serialNumber == null) {
                        if (other.serialNumber != null)
                                return false;
                } else if (!serialNumber.equals(other.serialNumber))
                        return false;
                if (underWriterId == null) {
                        if (other.underWriterId != null)
                                return false;
                } else if (!underWriterId.equals(other.underWriterId))
                        return false;
                if (underWriterName == null) {
                        if (other.underWriterName != null)
                                return false;
                } else if (!underWriterName.equals(other.underWriterName))
                        return false;
                if (wmfgDate == null) {
                        if (other.wmfgDate != null)
                                return false;
                } else if (!wmfgDate.equals(other.wmfgDate))
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "InsuranceModel [brand=" + brand + ", color=" + color + ", ram=" + ram + ", memory=" + memory
                                + ", mfgDate=" + mfgDate + ", wmfgDate=" + wmfgDate + ", modelName=" + modelName + ", insuranceAmount="
                                + insuranceAmount + ", insuranceId=" + insuranceId + ", deviceSellingPrice=" + deviceSellingPrice
                                + ", serialNumber=" + serialNumber + ", providerName=" + providerName + ", providerId=" + providerId
                                + ", underWriterName=" + underWriterName + ", underWriterId=" + underWriterId + ", customerId="
                                + customerId + ", customerEmail=" + customerEmail + ", dob=" + dob + ", fofoOrderId=" + fofoOrderId
                                + ", fofoOrderItemId=" + fofoOrderItemId + "]";
        }

}