Subversion Repositories SmartDukaan

Rev

Rev 37316 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37316 Rev 37317
Line 44... Line 44...
44
 
44
 
45
	@Column(name = "scracthed_at")
45
	@Column(name = "scracthed_at")
46
	private LocalDateTime scracthedAt;
46
	private LocalDateTime scracthedAt;
47
 
47
 
48
	@Column(name = "offer_id")
48
	@Column(name = "offer_id")
49
	private int offerId;
49
	private Integer offerId = 0;
50
 
50
 
51
	@Column(name = "gift_id")
51
	@Column(name = "gift_id")
52
	private Integer giftId = 0;
52
	private Integer giftId = 0;
53
 
53
 
54
	public LocalDateTime getScracthedAt() {
54
	public LocalDateTime getScracthedAt() {
Line 146... Line 146...
146
 
146
 
147
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
147
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
148
		this.createdTimestamp = createdTimestamp;
148
		this.createdTimestamp = createdTimestamp;
149
	}
149
	}
150
 
150
 
-
 
151
	// offer_id is nullable for legacy rows - treat NULL as "no offer" (0)
151
	public int getOfferId() {
152
	public int getOfferId() {
152
		return offerId;
153
		return offerId == null ? 0 : offerId;
153
	}
154
	}
154
 
155
 
155
	public void setOfferId(int offerId) {
156
	public void setOfferId(int offerId) {
156
		this.offerId = offerId;
157
		this.offerId = offerId;
157
	}
158
	}