Subversion Repositories SmartDukaan

Rev

Rev 24349 | Rev 26089 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
public class CustomRetailer {
23786 amit.gupta 4
	private int partnerId;
23796 amit.gupta 5
	private int cartId;
21686 ashik.ali 6
	private String businessName;
7
	private CustomAddress address;
8
	private String mobileNumber;
22351 ashik.ali 9
	private String gstNumber;
23903 amit.gupta 10
	private String email;
24349 amit.gupta 11
	private String displayName;
21686 ashik.ali 12
 
24349 amit.gupta 13
	public String getDisplayName() {
14
		return displayName;
15
	}
16
	public void setDisplayName(String displayName) {
17
		this.displayName = displayName;
18
	}
21686 ashik.ali 19
	public String getBusinessName() {
20
		return businessName;
21
	}
22
	public void setBusinessName(String businessName) {
23
		this.businessName = businessName;
24
	}
25
	public CustomAddress getAddress() {
26
		return address;
27
	}
28
	public void setAddress(CustomAddress address) {
29
		this.address = address;
30
	}
31
	public String getMobileNumber() {
32
		return mobileNumber;
33
	}
34
	public void setMobileNumber(String mobileNumber) {
35
		this.mobileNumber = mobileNumber;
36
	}
22351 ashik.ali 37
	public String getGstNumber() {
38
		return gstNumber;
39
	}
23903 amit.gupta 40
	public String getEmail() {
41
		return email;
42
	}
43
	public void setEmail(String email) {
44
		this.email = email;
45
	}
22351 ashik.ali 46
	public void setGstNumber(String gstNumber) {
47
		this.gstNumber = gstNumber;
48
	}
21923 ashik.ali 49
 
23796 amit.gupta 50
	public int getCartId() {
51
		return cartId;
52
	}
53
	public void setCartId(int cartId) {
54
		this.cartId = cartId;
55
	}
23786 amit.gupta 56
	public int getPartnerId() {
57
		return partnerId;
58
	}
59
	public void setPartnerId(int partnerId) {
60
		this.partnerId = partnerId;
61
	}
21686 ashik.ali 62
	@Override
21923 ashik.ali 63
	public int hashCode() {
64
		final int prime = 31;
65
		int result = 1;
25840 amit.gupta 66
		result = prime * result + partnerId;
21923 ashik.ali 67
		return result;
68
	}
69
	@Override
70
	public boolean equals(Object obj) {
71
		if (this == obj)
72
			return true;
73
		if (obj == null)
74
			return false;
75
		if (getClass() != obj.getClass())
76
			return false;
77
		CustomRetailer other = (CustomRetailer) obj;
78
		if (address == null) {
79
			if (other.address != null)
80
				return false;
81
		} else if (!address.equals(other.address))
82
			return false;
83
		if (businessName == null) {
84
			if (other.businessName != null)
85
				return false;
86
		} else if (!businessName.equals(other.businessName))
87
			return false;
25840 amit.gupta 88
		if (cartId != other.cartId)
89
			return false;
90
		if (displayName == null) {
91
			if (other.displayName != null)
92
				return false;
93
		} else if (!displayName.equals(other.displayName))
94
			return false;
95
		if (email == null) {
96
			if (other.email != null)
97
				return false;
98
		} else if (!email.equals(other.email))
99
			return false;
100
		if (gstNumber == null) {
101
			if (other.gstNumber != null)
102
				return false;
103
		} else if (!gstNumber.equals(other.gstNumber))
104
			return false;
21923 ashik.ali 105
		if (mobileNumber == null) {
106
			if (other.mobileNumber != null)
107
				return false;
108
		} else if (!mobileNumber.equals(other.mobileNumber))
109
			return false;
25840 amit.gupta 110
		if (partnerId != other.partnerId)
111
			return false;
21923 ashik.ali 112
		return true;
113
	}
114
	@Override
21686 ashik.ali 115
	public String toString() {
23796 amit.gupta 116
		return "CustomRetailer [partnerId=" + partnerId + ", cartId=" + cartId + ", businessName=" + businessName
23903 amit.gupta 117
				+ ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email="
24349 amit.gupta 118
				+ email + ", displayName=" + displayName + "]";
21686 ashik.ali 119
	}
120
 
121
}