Subversion Repositories SmartDukaan

Rev

Rev 31860 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22859 ashik.ali 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
30121 amit.gupta 7
import java.io.Serializable;
8
import java.time.LocalDateTime;
9
import java.util.Objects;
22859 ashik.ali 10
 
11
@Entity
31860 tejbeer 12
@Table(name = "fofo.scheme_item")
30121 amit.gupta 13
public class SchemeItem implements Serializable {
22859 ashik.ali 14
 
15
	private static final long serialVersionUID = 1L;
16
 
17
	@Id
18
	@Column(name = "scheme_id")
19
	private int schemeId;
30121 amit.gupta 20
 
22859 ashik.ali 21
	@Id
30121 amit.gupta 22
	@Column(name = "catalog_id")
23
	private int catalogId;
24
 
34317 amit.gupta 25
	@Column(name = "start_date")
26
	private LocalDateTime startDate;
27
 
28
	@Column(name = "end_date")
29
	private LocalDateTime endDate;
30
 
29606 amit.gupta 31
	@Column(name = "create_timestamp")
29624 amit.gupta 32
	private LocalDateTime createTimestamp = LocalDateTime.now();
30121 amit.gupta 33
 
22859 ashik.ali 34
	public int getSchemeId() {
35
		return schemeId;
36
	}
30121 amit.gupta 37
 
22859 ashik.ali 38
	public void setSchemeId(int schemeId) {
39
		this.schemeId = schemeId;
40
	}
30121 amit.gupta 41
 
34317 amit.gupta 42
	public LocalDateTime getCreateTimestamp() {
43
		return createTimestamp;
22859 ashik.ali 44
	}
30121 amit.gupta 45
 
34317 amit.gupta 46
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
47
		this.createTimestamp = createTimestamp;
48
	}
49
 
50
	public int getCatalogId() {
51
		return catalogId;
52
	}
53
 
54
	public void setCatalogId(int catalogId) {
55
		this.catalogId = catalogId;
56
	}
57
 
30121 amit.gupta 58
	@Override
59
	public String toString() {
60
		return "SchemeItem{" +
61
				"schemeId=" + schemeId +
62
				", catalogId=" + catalogId +
34317 amit.gupta 63
				", startDate=" + startDate +
64
				", endDate=" + endDate +
30121 amit.gupta 65
				", createTimestamp=" + createTimestamp +
66
				'}';
22859 ashik.ali 67
	}
68
 
30121 amit.gupta 69
	@Override
34317 amit.gupta 70
	public boolean equals(Object o) {
71
		if (this == o) return true;
72
		if (o == null || getClass() != o.getClass()) return false;
73
		SchemeItem that = (SchemeItem) o;
74
		return schemeId == that.schemeId && catalogId == that.catalogId && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(createTimestamp, that.createTimestamp);
75
	}
76
 
77
	@Override
30121 amit.gupta 78
	public int hashCode() {
34317 amit.gupta 79
		return Objects.hash(schemeId, catalogId, startDate, endDate, createTimestamp);
30121 amit.gupta 80
	}
81
 
34317 amit.gupta 82
	public LocalDateTime getStartDate() {
83
		return startDate;
29606 amit.gupta 84
	}
85
 
34317 amit.gupta 86
	public void setStartDate(LocalDateTime startDate) {
87
		this.startDate = startDate;
29606 amit.gupta 88
	}
89
 
34317 amit.gupta 90
	public LocalDateTime getEndDate() {
91
		return endDate;
22859 ashik.ali 92
	}
93
 
34317 amit.gupta 94
	public void setEndDate(LocalDateTime endDate) {
95
		this.endDate = endDate;
22859 ashik.ali 96
	}
97
}