Subversion Repositories SmartDukaan

Rev

Rev 22688 | Rev 23001 | 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.util.Set;

public class PdfModel {
        private String title;
        private String auther;
        private CustomCustomer customer;
        private CustomRetailer retailer;
        private String invoiceNumber;
        private String invoiceDate;
        private Set<CustomOrderItem> orderItems;
        private Set<CustomInsurancePolicy> insurancePolicies;
        private float totalAmount;
        public String getTitle() {
                return title;
        }
        public void setTitle(String title) {
                this.title = title;
        }
        public String getAuther() {
                return auther;
        }
        public void setAuther(String auther) {
                this.auther = auther;
        }
        public CustomCustomer getCustomer() {
                return customer;
        }
        public void setCustomer(CustomCustomer customer) {
                this.customer = customer;
        }
        public CustomRetailer getRetailer() {
                return retailer;
        }
        public void setRetailer(CustomRetailer retailer) {
                this.retailer = retailer;
        }
        public String getInvoiceNumber() {
                return invoiceNumber;
        }
        public void setInvoiceNumber(String invoiceNumber) {
                this.invoiceNumber = invoiceNumber;
        }
        public Set<CustomOrderItem> getOrderItems() {
                return orderItems;
        }
        public void setOrderItems(Set<CustomOrderItem> orderItems) {
                this.orderItems = orderItems;
        }
        public Set<CustomInsurancePolicy> getInsurancePolicies() {
                return insurancePolicies;
        }
        public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
                this.insurancePolicies = insurancePolicies;
        }
        public float getTotalAmount() {
                return totalAmount;
        }
        public void setTotalAmount(float totalAmount) {
                this.totalAmount = totalAmount;
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((auther == null) ? 0 : auther.hashCode());
                result = prime * result + ((customer == null) ? 0 : customer.hashCode());
                result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
                result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
                result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
                result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
                result = prime * result + ((title == null) ? 0 : title.hashCode());
                result = prime * result + Float.floatToIntBits(totalAmount);
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                PdfModel other = (PdfModel) obj;
                if (auther == null) {
                        if (other.auther != null)
                                return false;
                } else if (!auther.equals(other.auther))
                        return false;
                if (customer == null) {
                        if (other.customer != null)
                                return false;
                } else if (!customer.equals(other.customer))
                        return false;
                if (invoiceNumber == null) {
                        if (other.invoiceNumber != null)
                                return false;
                } else if (!invoiceNumber.equals(other.invoiceNumber))
                        return false;
                if (orderItems == null) {
                        if (other.orderItems != null)
                                return false;
                } else if (!orderItems.equals(other.orderItems))
                        return false;
                if (insurancePolicies == null) {
                        if (other.insurancePolicies != null)
                                return false;
                } else if (!insurancePolicies.equals(other.insurancePolicies))
                        return false;
                if (retailer == null) {
                        if (other.retailer != null)
                                return false;
                } else if (!retailer.equals(other.retailer))
                        return false;
                if (title == null) {
                        if (other.title != null)
                                return false;
                } else if (!title.equals(other.title))
                        return false;
                if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
                                + ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", insurancePolicies="
                                + insurancePolicies + ", totalAmount=" + totalAmount + "]";
        }
        public String getInvoiceDate() {
                return invoiceDate;
        }
        public void setInvoiceDate(String invoiceDate) {
                this.invoiceDate = invoiceDate;
        }
        
        
        
}