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