Subversion Repositories SmartDukaan

Rev

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

Rev 22216 Rev 22352
Line 83... Line 83...
83
	private Float unitPrice;
83
	private Float unitPrice;
84
	
84
	
85
	@Column(name = "price_drop_amount")
85
	@Column(name = "price_drop_amount")
86
	private Float priceDropAmount;
86
	private Float priceDropAmount;
87
	
87
	
-
 
88
	@Column(name = "buy_back", columnDefinition = "tinyint(1) default 1")
-
 
89
	private boolean buyBack;
-
 
90
	
88
	@Convert(converter = LocalDateTimeAttributeConverter.class)
91
	@Convert(converter = LocalDateTimeAttributeConverter.class)
89
	@Column(name = "create_timestamp")
92
	@Column(name = "create_timestamp")
90
	private LocalDateTime createTimestamp = LocalDateTime.now();
93
	private LocalDateTime createTimestamp = LocalDateTime.now();
91
	
94
	
92
	@Convert(converter = LocalDateTimeAttributeConverter.class)
95
	@Convert(converter = LocalDateTimeAttributeConverter.class)
Line 203... Line 206...
203
	}
206
	}
204
	public void setItem(Item item) {
207
	public void setItem(Item item) {
205
		this.item = item;
208
		this.item = item;
206
	}
209
	}
207
 
210
 
-
 
211
	public boolean isBuyBack() {
-
 
212
		return buyBack;
-
 
213
	}
-
 
214
	
-
 
215
	public void setBuyBack(boolean buyBack) {
-
 
216
		this.buyBack = buyBack;
-
 
217
	}
208
	
218
	
209
	@Override
219
	@Override
210
	public int hashCode() {
220
	public int hashCode() {
211
		final int prime = 31;
221
		final int prime = 31;
212
		int result = 1;
222
		int result = 1;
Line 231... Line 241...
231
	@Override
241
	@Override
232
	public String toString() {
242
	public String toString() {
233
		return "InventoryItem [id=" + id + ", itemId=" + itemId + ", fofoId=" + fofoId + ", serialNumber="
243
		return "InventoryItem [id=" + id + ", itemId=" + itemId + ", fofoId=" + fofoId + ", serialNumber="
234
				+ serialNumber + ", initialQuantity=" + initialQuantity + ", goodQuantity=" + goodQuantity
244
				+ serialNumber + ", initialQuantity=" + initialQuantity + ", goodQuantity=" + goodQuantity
235
				+ ", badQuantity=" + badQuantity + ", lastScanType=" + lastScanType + ", purchaseId=" + purchaseId
245
				+ ", badQuantity=" + badQuantity + ", lastScanType=" + lastScanType + ", purchaseId=" + purchaseId
236
				+ ", unitPrice=" + unitPrice + ", priceDropAmount=" + priceDropAmount + ", createTimestamp="
246
				+ ", unitPrice=" + unitPrice + ", priceDropAmount=" + priceDropAmount + ", buyBack=" + buyBack
237
				+ createTimestamp + ", updateTimestamp=" + updateTimestamp + ", item=" + item + "]";
247
				+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + ", item=" + item
-
 
248
				+ "]";
238
	}
249
	}
-
 
250
 
239
	
251
	
240
}
252
}