Subversion Repositories SmartDukaan

Rev

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

Rev 21714 Rev 21924
Line 89... Line 89...
89
		return createTimestamp;
89
		return createTimestamp;
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
	
-
 
95
	
-
 
96
 
-
 
97
	@Override
-
 
98
	public int hashCode() {
-
 
99
		final int prime = 31;
-
 
100
		int result = 1;
-
 
101
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
102
		result = prime * result + fofoId;
-
 
103
		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;
-
 
108
	}
-
 
109
 
-
 
110
	@Override
-
 
111
	public boolean equals(Object obj) {
-
 
112
		if (this == obj)
-
 
113
			return true;
-
 
114
		if (obj == null)
-
 
115
			return false;
-
 
116
		if (getClass() != obj.getClass())
-
 
117
			return false;
-
 
118
		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)
-
 
127
			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;
-
 
135
	}
94
 
136
 
95
	@Override
137
	@Override
96
	public String toString() {
138
	public String toString() {
97
		return "ScanRecord [id=" + id + ", fofoId=" + fofoId + ", inventoryItemId=" + inventoryItemId + ", quantity="
139
		return "ScanRecord [id=" + id + ", fofoId=" + fofoId + ", inventoryItemId=" + inventoryItemId + ", quantity="
98
				+ quantity + ", type=" + type + ", createTimestamp=" + createTimestamp + "]";
140
				+ quantity + ", type=" + type + ", createTimestamp=" + createTimestamp + "]";