Subversion Repositories SmartDukaan

Rev

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

Rev 34474 Rev 37316
Line 47... Line 47...
47
 
47
 
48
	@Column(name = "offer_id")
48
	@Column(name = "offer_id")
49
	private int offerId;
49
	private int offerId;
50
 
50
 
51
	@Column(name = "gift_id")
51
	@Column(name = "gift_id")
52
	private int giftId;
52
	private Integer giftId = 0;
53
 
53
 
54
	public LocalDateTime getScracthedAt() {
54
	public LocalDateTime getScracthedAt() {
55
		return scracthedAt;
55
		return scracthedAt;
56
	}
56
	}
57
 
57
 
Line 154... Line 154...
154
 
154
 
155
	public void setOfferId(int offerId) {
155
	public void setOfferId(int offerId) {
156
		this.offerId = offerId;
156
		this.offerId = offerId;
157
	}
157
	}
158
 
158
 
-
 
159
	// gift_id is nullable for legacy rows - treat NULL as "no gift" (0)
159
	public int getGiftId() {
160
	public int getGiftId() {
160
		return giftId;
161
		return giftId == null ? 0 : giftId;
161
	}
162
	}
162
 
163
 
163
	public void setGiftId(int giftId) {
164
	public void setGiftId(int giftId) {
164
		this.giftId = giftId;
165
		this.giftId = giftId;
165
	}
166
	}