Subversion Repositories SmartDukaan

Rev

Rev 30121 | Rev 34317 | 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
 
29606 amit.gupta 25
	@Column(name = "create_timestamp")
29624 amit.gupta 26
	private LocalDateTime createTimestamp = LocalDateTime.now();
30121 amit.gupta 27
 
22859 ashik.ali 28
	public int getSchemeId() {
29
		return schemeId;
30
	}
30121 amit.gupta 31
 
22859 ashik.ali 32
	public void setSchemeId(int schemeId) {
33
		this.schemeId = schemeId;
34
	}
30121 amit.gupta 35
 
36
	@Override
37
	public boolean equals(Object o) {
38
		if (this == o) return true;
39
		if (o == null || getClass() != o.getClass()) return false;
40
		SchemeItem that = (SchemeItem) o;
41
		return schemeId == that.schemeId && catalogId == that.catalogId && Objects.equals(createTimestamp, that.createTimestamp);
22859 ashik.ali 42
	}
30121 amit.gupta 43
 
44
	@Override
45
	public String toString() {
46
		return "SchemeItem{" +
47
				"schemeId=" + schemeId +
48
				", catalogId=" + catalogId +
49
				", createTimestamp=" + createTimestamp +
50
				'}';
22859 ashik.ali 51
	}
52
 
30121 amit.gupta 53
	@Override
54
	public int hashCode() {
55
		return Objects.hash(schemeId, catalogId, createTimestamp);
56
	}
57
 
29606 amit.gupta 58
	public LocalDateTime getCreateTimestamp() {
59
		return createTimestamp;
60
	}
61
 
62
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
63
		this.createTimestamp = createTimestamp;
64
	}
65
 
30121 amit.gupta 66
	public int getCatalogId() {
67
		return catalogId;
22859 ashik.ali 68
	}
69
 
30121 amit.gupta 70
	public void setCatalogId(int catalogId) {
71
		this.catalogId = catalogId;
22859 ashik.ali 72
	}
73
 
30121 amit.gupta 74
 
22859 ashik.ali 75
}