Subversion Repositories SmartDukaan

Rev

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

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