Subversion Repositories SmartDukaan

Rev

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

Rev 23874 Rev 23951
Line 32... Line 32...
32
	@Id
32
	@Id
33
	@Column(name = "id")
33
	@Column(name = "id")
34
	@GeneratedValue(strategy = GenerationType.IDENTITY)
34
	@GeneratedValue(strategy = GenerationType.IDENTITY)
35
	private int id;
35
	private int id;
36
 
36
 
37
	@Column(name = "item_id")
37
	@Column(name = "catalog_id")
38
	private int itemId;
38
	private int catalogItemId;
39
 
39
 
40
	@Column(name = "amount")
40
	@Column(name = "amount")
41
	private float amount;
41
	private float amount;
42
 
42
 
43
	@Column(name = "credit_note_number")
43
	@Column(name = "credit_note_number")
Line 83... Line 83...
83
 
83
 
84
	public void setPriceDropIn(float priceDropIn) {
84
	public void setPriceDropIn(float priceDropIn) {
85
		this.priceDropIn = priceDropIn;
85
		this.priceDropIn = priceDropIn;
86
	}
86
	}
87
 
87
 
88
	public int getItemId() {
88
	public int getCatalogItemId() {
89
		return itemId;
89
		return catalogItemId;
90
	}
90
	}
91
 
91
 
92
	public void setItemId(int itemId) {
92
	public void setCatalogItemId(int catalogItemId) {
93
		this.itemId = itemId;
93
		this.catalogItemId = catalogItemId;
-
 
94
	}
-
 
95
 
-
 
96
	@Override
-
 
97
	public String toString() {
-
 
98
		return "PriceDrop [id=" + id + ", catalogItemId=" + catalogItemId + ", amount=" + amount + ", creditNoteNumber="
-
 
99
				+ creditNoteNumber + ", processTimestamp=" + processTimestamp + ", priceDropIn=" + priceDropIn
-
 
100
				+ ", partnerPayout=" + partnerPayout + ", createdOn=" + createdOn + ", affectedOn=" + affectedOn
-
 
101
				+ ", creditNoteDate=" + creditNoteDate + "]";
94
	}
102
	}
95
 
103
 
96
	public float getAmount() {
104
	public float getAmount() {
97
		return amount;
105
		return amount;
98
	}
106
	}
Line 177... Line 185...
177
		if (id != other.id)
185
		if (id != other.id)
178
			return false;
186
			return false;
179
		return true;
187
		return true;
180
	}
188
	}
181
 
189
 
182
	@Override
-
 
183
	public String toString() {
-
 
184
		return "PriceDrop [id=" + id + ", itemId=" + itemId + ", amount=" + amount + ", creditNoteNumber="
-
 
185
				+ creditNoteNumber + ", processTimestamp=" + processTimestamp + ", priceDropIn=" + priceDropIn
-
 
186
				+ ", partnerPayout=" + partnerPayout + ", createdOn=" + createdOn + ", affectedon=" + affectedOn
-
 
187
				+ ", creditNoteDate=" + creditNoteDate + "]";
-
 
188
	}
-
 
189
 
-
 
190
}
190
}
191
191