Subversion Repositories SmartDukaan

Rev

Rev 21714 | Rev 21984 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21714 Rev 21924
Line 88... Line 88...
88
		return createTimestamp;
88
		return createTimestamp;
89
	}
89
	}
90
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
90
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
91
		this.createTimestamp = createTimestamp;
91
		this.createTimestamp = createTimestamp;
92
	}
92
	}
-
 
93
	
-
 
94
	
-
 
95
	@Override
-
 
96
	public int hashCode() {
-
 
97
		final int prime = 31;
-
 
98
		int result = 1;
-
 
99
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
100
		result = prime * result + customerAddressId;
-
 
101
		result = prime * result + customerId;
-
 
102
		result = prime * result + fofoId;
-
 
103
		result = prime * result + id;
-
 
104
		result = prime * result + ((invoiceNumber == null) ? 0 : invoiceNumber.hashCode());
-
 
105
		result = prime * result + Float.floatToIntBits(totalAmount);
-
 
106
		return result;
-
 
107
	}
-
 
108
	@Override
-
 
109
	public boolean equals(Object obj) {
-
 
110
		if (this == obj)
-
 
111
			return true;
-
 
112
		if (obj == null)
-
 
113
			return false;
-
 
114
		if (getClass() != obj.getClass())
-
 
115
			return false;
-
 
116
		FofoOrder other = (FofoOrder) obj;
-
 
117
		if (createTimestamp == null) {
-
 
118
			if (other.createTimestamp != null)
-
 
119
				return false;
-
 
120
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
121
			return false;
-
 
122
		if (customerAddressId != other.customerAddressId)
-
 
123
			return false;
-
 
124
		if (customerId != other.customerId)
-
 
125
			return false;
-
 
126
		if (fofoId != other.fofoId)
-
 
127
			return false;
-
 
128
		if (id != other.id)
-
 
129
			return false;
-
 
130
		if (invoiceNumber == null) {
-
 
131
			if (other.invoiceNumber != null)
-
 
132
				return false;
-
 
133
		} else if (!invoiceNumber.equals(other.invoiceNumber))
-
 
134
			return false;
-
 
135
		if (Float.floatToIntBits(totalAmount) != Float.floatToIntBits(other.totalAmount))
-
 
136
			return false;
-
 
137
		return true;
-
 
138
	}
93
	@Override
139
	@Override
94
	public String toString() {
140
	public String toString() {
95
		return "FofoOrder [id=" + id + ", fofoId=" + fofoId + ", customerId=" + customerId + ", customerAddressId="
141
		return "FofoOrder [id=" + id + ", fofoId=" + fofoId + ", customerId=" + customerId + ", customerAddressId="
96
				+ customerAddressId + ", totalAmount=" + totalAmount + ", invoiceNumber=" + invoiceNumber
142
				+ customerAddressId + ", totalAmount=" + totalAmount + ", invoiceNumber=" + invoiceNumber
97
				+ ", createTimestamp=" + createTimestamp + "]";
143
				+ ", createTimestamp=" + createTimestamp + "]";