Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37030 amit 1
package com.spice.profitmandi.dao.entity.dtr;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Convert;
8
import javax.persistence.Entity;
9
import javax.persistence.EnumType;
10
import javax.persistence.Enumerated;
11
import javax.persistence.GeneratedValue;
12
import javax.persistence.GenerationType;
13
import javax.persistence.Id;
14
import javax.persistence.Table;
15
 
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
17
 
18
@Entity
19
@Table(name = "dtr.credit_block_log")
20
public class CreditBlockLog implements Serializable {
21
 
22
	private static final long serialVersionUID = 1L;
23
 
24
	@Id
25
	@Column(name = "id", unique = true, updatable = false)
26
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	private long id;
28
 
29
	@Column(name = "credit_account_id")
30
	private int creditAccountId;
31
 
32
	@Column(name = "fofo_id")
33
	private int fofoId;
34
 
35
	@Column(name = "action")
36
	@Enumerated(EnumType.STRING)
37
	private CreditBlockAction action;
38
 
39
	@Column(name = "reason")
40
	private String reason;
41
 
42
	@Column(name = "performed_by")
43
	private String performedBy;
44
 
45
	@Column(name = "created_on")
46
	@Convert(converter = LocalDateTimeAttributeConverter.class)
47
	private LocalDateTime createdOn;
48
 
49
	public long getId() {
50
		return id;
51
	}
52
 
53
	public void setId(long id) {
54
		this.id = id;
55
	}
56
 
57
	public int getCreditAccountId() {
58
		return creditAccountId;
59
	}
60
 
61
	public void setCreditAccountId(int creditAccountId) {
62
		this.creditAccountId = creditAccountId;
63
	}
64
 
65
	public int getFofoId() {
66
		return fofoId;
67
	}
68
 
69
	public void setFofoId(int fofoId) {
70
		this.fofoId = fofoId;
71
	}
72
 
73
	public CreditBlockAction getAction() {
74
		return action;
75
	}
76
 
77
	public void setAction(CreditBlockAction action) {
78
		this.action = action;
79
	}
80
 
81
	public String getReason() {
82
		return reason;
83
	}
84
 
85
	public void setReason(String reason) {
86
		this.reason = reason;
87
	}
88
 
89
	public String getPerformedBy() {
90
		return performedBy;
91
	}
92
 
93
	public void setPerformedBy(String performedBy) {
94
		this.performedBy = performedBy;
95
	}
96
 
97
	public LocalDateTime getCreatedOn() {
98
		return createdOn;
99
	}
100
 
101
	public void setCreatedOn(LocalDateTime createdOn) {
102
		this.createdOn = createdOn;
103
	}
104
 
105
	@Override
106
	public String toString() {
107
		return "CreditBlockLog [id=" + id + ", creditAccountId=" + creditAccountId + ", fofoId=" + fofoId + ", action="
108
				+ action + ", reason=" + reason + ", performedBy=" + performedBy + ", createdOn=" + createdOn + "]";
109
	}
110
}