Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
23001 amit.gupta 3
import java.util.List;
21686 ashik.ali 4
import java.util.Set;
5
 
6
public class PdfModel {
7
	private String title;
8
	private String auther;
9
	private CustomCustomer customer;
10
	private CustomRetailer retailer;
11
	private String invoiceNumber;
22688 amit.gupta 12
	private String invoiceDate;
22858 ashik.ali 13
	private Set<CustomOrderItem> orderItems;
22215 ashik.ali 14
	private Set<CustomInsurancePolicy> insurancePolicies;
23001 amit.gupta 15
	private List<String> tncs;
21686 ashik.ali 16
	private float totalAmount;
17
	public String getTitle() {
18
		return title;
19
	}
20
	public void setTitle(String title) {
21
		this.title = title;
22
	}
23
	public String getAuther() {
24
		return auther;
25
	}
26
	public void setAuther(String auther) {
27
		this.auther = auther;
28
	}
29
	public CustomCustomer getCustomer() {
30
		return customer;
31
	}
32
	public void setCustomer(CustomCustomer customer) {
33
		this.customer = customer;
34
	}
35
	public CustomRetailer getRetailer() {
36
		return retailer;
37
	}
38
	public void setRetailer(CustomRetailer retailer) {
39
		this.retailer = retailer;
40
	}
41
	public String getInvoiceNumber() {
42
		return invoiceNumber;
43
	}
44
	public void setInvoiceNumber(String invoiceNumber) {
45
		this.invoiceNumber = invoiceNumber;
46
	}
22858 ashik.ali 47
	public Set<CustomOrderItem> getOrderItems() {
21686 ashik.ali 48
		return orderItems;
49
	}
22858 ashik.ali 50
	public void setOrderItems(Set<CustomOrderItem> orderItems) {
21686 ashik.ali 51
		this.orderItems = orderItems;
52
	}
22215 ashik.ali 53
	public Set<CustomInsurancePolicy> getInsurancePolicies() {
54
		return insurancePolicies;
55
	}
56
	public void setInsurancePolicies(Set<CustomInsurancePolicy> insurancePolicies) {
57
		this.insurancePolicies = insurancePolicies;
58
	}
21686 ashik.ali 59
	public float getTotalAmount() {
60
		return totalAmount;
61
	}
62
	public void setTotalAmount(float totalAmount) {
63
		this.totalAmount = totalAmount;
64
	}
21923 ashik.ali 65
	@Override
66
	public int hashCode() {
67
		final int prime = 31;
68
		int result = 1;
69
		result = prime * result + ((auther == null) ? 0 : auther.hashCode());
70
		result = prime * result + ((customer == null) ? 0 : customer.hashCode());
71
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
72
		result = prime * result + ((orderItems == null) ? 0 : orderItems.hashCode());
22215 ashik.ali 73
		result = prime * result + ((insurancePolicies == null) ? 0 : insurancePolicies.hashCode());
21923 ashik.ali 74
		result = prime * result + ((retailer == null) ? 0 : retailer.hashCode());
75
		result = prime * result + ((title == null) ? 0 : title.hashCode());
76
		result = prime * result + Float.floatToIntBits(totalAmount);
77
		return result;
78
	}
79
	@Override
80
	public boolean equals(Object obj) {
81
		if (this == obj)
82
			return true;
83
		if (obj == null)
84
			return false;
85
		if (getClass() != obj.getClass())
86
			return false;
87
		PdfModel other = (PdfModel) obj;
88
		if (auther == null) {
89
			if (other.auther != null)
90
				return false;
91
		} else if (!auther.equals(other.auther))
92
			return false;
93
		if (customer == null) {
94
			if (other.customer != null)
95
				return false;
96
		} else if (!customer.equals(other.customer))
97
			return false;
98
		if (invoiceNumber == null) {
99
			if (other.invoiceNumber != null)
100
				return false;
101
		} else if (!invoiceNumber.equals(other.invoiceNumber))
102
			return false;
103
		if (orderItems == null) {
104
			if (other.orderItems != null)
105
				return false;
106
		} else if (!orderItems.equals(other.orderItems))
107
			return false;
22215 ashik.ali 108
		if (insurancePolicies == null) {
109
			if (other.insurancePolicies != null)
110
				return false;
111
		} else if (!insurancePolicies.equals(other.insurancePolicies))
112
			return false;
21923 ashik.ali 113
		if (retailer == null) {
114
			if (other.retailer != null)
115
				return false;
116
		} else if (!retailer.equals(other.retailer))
117
			return false;
118
		if (title == null) {
119
			if (other.title != null)
120
				return false;
121
		} else if (!title.equals(other.title))
122
			return false;
123
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
124
			return false;
125
		return true;
126
	}
127
	@Override
128
	public String toString() {
129
		return "PdfModel [title=" + title + ", auther=" + auther + ", customer=" + customer + ", retailer=" + retailer
22215 ashik.ali 130
				+ ", invoiceNumber=" + invoiceNumber + ", orderItems=" + orderItems + ", insurancePolicies="
131
				+ insurancePolicies + ", totalAmount=" + totalAmount + "]";
21923 ashik.ali 132
	}
22688 amit.gupta 133
	public String getInvoiceDate() {
134
		return invoiceDate;
135
	}
136
	public void setInvoiceDate(String invoiceDate) {
137
		this.invoiceDate = invoiceDate;
138
	}
23001 amit.gupta 139
	public List<String> getTncs() {
140
		return tncs;
141
	}
142
	public void setTncs(List<String> tncs) {
143
		this.tncs = tncs;
144
	}
21923 ashik.ali 145
 
146
 
22215 ashik.ali 147
 
21686 ashik.ali 148
}