Subversion Repositories SmartDukaan

Rev

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

Rev 24671 Rev 27377
Line 3... Line 3...
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
5
 
5
 
6
import javax.persistence.Column;
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
7
import javax.persistence.Entity;
-
 
8
import javax.persistence.EnumType;
-
 
9
import javax.persistence.Enumerated;
8
import javax.persistence.GeneratedValue;
10
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
11
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
12
import javax.persistence.Id;
11
import javax.persistence.Table;
13
import javax.persistence.Table;
12
import javax.persistence.Transient;
14
import javax.persistence.Transient;
13
 
15
 
14
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
16
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
-
 
17
import com.spice.profitmandi.dao.enumuration.transaction.SchemePayoutStatus;
15
 
18
 
16
@Entity
19
@Entity
17
@Table(name = "fofo.scheme_in_out", schema = "fofo")
20
@Table(name = "fofo.scheme_in_out", schema = "fofo")
18
public class SchemeInOut implements Serializable {	
21
public class SchemeInOut implements Serializable {
19
	
22
 
20
	public SchemeInOut(int schemeId, int inventoryItemId) {
23
	public SchemeInOut(int schemeId, int inventoryItemId) {
21
		this.schemeId = schemeId;
24
		this.schemeId = schemeId;
22
		this.inventoryItemId = inventoryItemId;
25
		this.inventoryItemId = inventoryItemId;
23
	}
26
	}
24
 
27
 
25
	public SchemeInOut() {
28
	public SchemeInOut() {
26
	}
29
	}
27
	
30
 
28
	private static final long serialVersionUID = 1L;
31
	private static final long serialVersionUID = 1L;
29
 
32
 
30
	@Id
33
	@Id
31
	@GeneratedValue(strategy = GenerationType.IDENTITY)
34
	@GeneratedValue(strategy = GenerationType.IDENTITY)
32
	private int id;
35
	private int id;
Line 38... Line 41...
38
	private int inventoryItemId;
41
	private int inventoryItemId;
39
 
42
 
40
	@Column(name = "amount")
43
	@Column(name = "amount")
41
	private float amount;
44
	private float amount;
42
 
45
 
-
 
46
	@Column(name = "status")
-
 
47
	@Enumerated(EnumType.STRING)
-
 
48
	private SchemePayoutStatus status;
-
 
49
 
43
	@Column(name = "create_timestamp")
50
	@Column(name = "create_timestamp")
44
	private LocalDateTime createTimestamp = LocalDateTime.now();
51
	private LocalDateTime createTimestamp = LocalDateTime.now();
45
 
52
 
46
	@Column(name = "rolled_back_timestamp")
53
	@Column(name = "rolled_back_timestamp")
47
	private LocalDateTime rolledBackTimestamp;
54
	private LocalDateTime rolledBackTimestamp;
-
 
55
 
-
 
56
	@Column(name = "credit_timestamp")
-
 
57
	private LocalDateTime creditTimestamp;
-
 
58
 
-
 
59
	@Column(name = "status_description")
-
 
60
	private String statusDescription;
-
 
61
 
-
 
62
	public int getId() {
-
 
63
		return id;
-
 
64
	}
-
 
65
 
-
 
66
	public void setId(int id) {
-
 
67
		this.id = id;
-
 
68
	}
-
 
69
 
-
 
70
	public SchemePayoutStatus getStatus() {
-
 
71
		return status;
-
 
72
	}
-
 
73
 
-
 
74
	public void setStatus(SchemePayoutStatus status) {
-
 
75
		this.status = status;
-
 
76
	}
-
 
77
 
-
 
78
	public LocalDateTime getCreditTimestamp() {
-
 
79
		return creditTimestamp;
-
 
80
	}
-
 
81
 
-
 
82
	public void setCreditTimestamp(LocalDateTime creditTimestamp) {
-
 
83
		this.creditTimestamp = creditTimestamp;
-
 
84
	}
-
 
85
 
-
 
86
	public String getStatusDescription() {
-
 
87
		return statusDescription;
-
 
88
	}
-
 
89
 
-
 
90
	public void setStatusDescription(String statusDescription) {
-
 
91
		this.statusDescription = statusDescription;
48
	
92
	}
-
 
93
 
49
	@Transient
94
	@Transient
50
	private int reference;
95
	private int reference;
-
 
96
 
51
	public int getReference() {
97
	public int getReference() {
52
		return reference;
98
		return reference;
53
	}
99
	}
54
 
100
 
55
	public void setReference(int reference) {
101
	public void setReference(int reference) {
56
		this.reference = reference;
102
		this.reference = reference;
57
	}
103
	}
58
 
104
 
59
	@Transient
105
	@Transient
60
	private String serialNumber;
106
	private String serialNumber;
61
	
107
 
62
	@Transient
108
	@Transient
63
	private String storeCode;
109
	private String storeCode;
64
	
110
 
65
	@Transient
111
	@Transient
66
	private SchemeType schemeType;
112
	private SchemeType schemeType;
67
 
113
 
68
	public String getStoreCode() {
114
	public String getStoreCode() {
69
		return storeCode;
115
		return storeCode;
Line 182... Line 228...
182
	}
228
	}
183
 
229
 
184
	@Override
230
	@Override
185
	public String toString() {
231
	public String toString() {
186
		return "SchemeInOut [id=" + id + ", schemeId=" + schemeId + ", inventoryItemId=" + inventoryItemId + ", amount="
232
		return "SchemeInOut [id=" + id + ", schemeId=" + schemeId + ", inventoryItemId=" + inventoryItemId + ", amount="
187
				+ amount + ", createTimestamp=" + createTimestamp + ", rolledBackTimestamp=" + rolledBackTimestamp
233
				+ amount + ", status=" + status + ", createTimestamp=" + createTimestamp + ", rolledBackTimestamp="
-
 
234
				+ rolledBackTimestamp + ", creditTimestamp=" + creditTimestamp + ", statusDescription="
-
 
235
				+ statusDescription + ", reference=" + reference + ", serialNumber=" + serialNumber + ", storeCode="
188
				+ ", serialNumber=" + serialNumber + ", storeCode=" + storeCode + ", schemeType=" + schemeType + "]";
236
				+ storeCode + ", schemeType=" + schemeType + "]";
189
	}
237
	}
190
 
238
 
191
}
239
}