Subversion Repositories SmartDukaan

Rev

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

Rev 28162 Rev 30635
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.user;
1
package com.spice.profitmandi.dao.entity.user;
2
 
2
 
3
import java.io.Serializable;
-
 
4
import java.time.LocalDateTime;
-
 
5
 
-
 
6
import javax.persistence.Column;
3
import javax.persistence.Column;
7
import javax.persistence.Entity;
4
import javax.persistence.Entity;
8
import javax.persistence.Id;
5
import javax.persistence.Id;
9
import javax.persistence.Table;
6
import javax.persistence.Table;
-
 
7
import java.io.Serializable;
-
 
8
import java.time.LocalDateTime;
10
 
9
 
11
/**
10
/**
12
 * This class basically contains cart details
11
 * This class basically contains cart details
13
 * 
12
 * 
14
 * @author ashikali
13
 * @author ashikali
Line 29... Line 28...
29
	private int quantity;
28
	private int quantity;
30
	
29
	
31
	@Column(name="line_status")
30
	@Column(name="line_status")
32
	private int lineStatus;
31
	private int lineStatus;
33
 
32
 
34
	@Column(name="estimate")
33
	@Column(name = "estimate")
35
	private int estimate;
34
	private Integer estimate;
36
	
35
	
37
	@Column(name="created_on")
36
	@Column(name="created_on")
38
	private LocalDateTime createTimestamp;
37
	private LocalDateTime createTimestamp;
39
	
38
	
40
	@Column(name="updated_on")
39
	@Column(name="updated_on")
Line 101... Line 100...
101
 
100
 
102
	public void setLineStatus(int lineStatus) {
101
	public void setLineStatus(int lineStatus) {
103
		this.lineStatus = lineStatus;
102
		this.lineStatus = lineStatus;
104
	}
103
	}
105
 
104
 
106
	public int getEstimate() {
105
	public Integer getEstimate() {
-
 
106
		if (estimate == null) {
-
 
107
			return 0;
-
 
108
		}
107
		return estimate;
109
		return estimate;
108
	}
110
	}
109
 
111
 
110
	public void setEstimate(int estimate) {
112
	public void setEstimate(Integer estimate) {
111
		this.estimate = estimate;
113
		this.estimate = estimate;
112
	}
114
	}
113
 
115
 
114
	public LocalDateTime getCreateTimestamp() {
116
	public LocalDateTime getCreateTimestamp() {
115
		return createTimestamp;
117
		return createTimestamp;