Subversion Repositories SmartDukaan

Rev

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

Rev 31860 Rev 34317
Line 20... Line 20...
20
 
20
 
21
	@Id
21
	@Id
22
	@Column(name = "catalog_id")
22
	@Column(name = "catalog_id")
23
	private int catalogId;
23
	private int catalogId;
24
 
24
 
-
 
25
	@Column(name = "start_date")
-
 
26
	private LocalDateTime startDate;
-
 
27
 
-
 
28
	@Column(name = "end_date")
-
 
29
	private LocalDateTime endDate;
-
 
30
 
25
	@Column(name = "create_timestamp")
31
	@Column(name = "create_timestamp")
26
	private LocalDateTime createTimestamp = LocalDateTime.now();
32
	private LocalDateTime createTimestamp = LocalDateTime.now();
27
 
33
 
28
	public int getSchemeId() {
34
	public int getSchemeId() {
29
		return schemeId;
35
		return schemeId;
Line 31... Line 37...
31
 
37
 
32
	public void setSchemeId(int schemeId) {
38
	public void setSchemeId(int schemeId) {
33
		this.schemeId = schemeId;
39
		this.schemeId = schemeId;
34
	}
40
	}
35
 
41
 
36
	@Override
-
 
37
	public boolean equals(Object o) {
42
	public LocalDateTime getCreateTimestamp() {
38
		if (this == o) return true;
43
		return createTimestamp;
-
 
44
	}
-
 
45
 
39
		if (o == null || getClass() != o.getClass()) return false;
46
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
40
		SchemeItem that = (SchemeItem) o;
47
		this.createTimestamp = createTimestamp;
-
 
48
	}
-
 
49
 
-
 
50
	public int getCatalogId() {
-
 
51
		return catalogId;
-
 
52
	}
-
 
53
 
41
		return schemeId == that.schemeId && catalogId == that.catalogId && Objects.equals(createTimestamp, that.createTimestamp);
54
	public void setCatalogId(int catalogId) {
-
 
55
		this.catalogId = catalogId;
42
	}
56
	}
43
 
57
 
44
	@Override
58
	@Override
45
	public String toString() {
59
	public String toString() {
46
		return "SchemeItem{" +
60
		return "SchemeItem{" +
47
				"schemeId=" + schemeId +
61
				"schemeId=" + schemeId +
48
				", catalogId=" + catalogId +
62
				", catalogId=" + catalogId +
-
 
63
				", startDate=" + startDate +
-
 
64
				", endDate=" + endDate +
49
				", createTimestamp=" + createTimestamp +
65
				", createTimestamp=" + createTimestamp +
50
				'}';
66
				'}';
51
	}
67
	}
52
 
68
 
53
	@Override
69
	@Override
54
	public int hashCode() {
70
	public boolean equals(Object o) {
-
 
71
		if (this == o) return true;
55
		return Objects.hash(schemeId, catalogId, createTimestamp);
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);
56
	}
75
	}
57
 
76
 
-
 
77
	@Override
58
	public LocalDateTime getCreateTimestamp() {
78
	public int hashCode() {
59
		return createTimestamp;
79
		return Objects.hash(schemeId, catalogId, startDate, endDate, createTimestamp);
60
	}
80
	}
61
 
81
 
62
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
82
	public LocalDateTime getStartDate() {
63
		this.createTimestamp = createTimestamp;
83
		return startDate;
64
	}
84
	}
65
 
85
 
66
	public int getCatalogId() {
86
	public void setStartDate(LocalDateTime startDate) {
67
		return catalogId;
87
		this.startDate = startDate;
68
	}
88
	}
69
 
89
 
70
	public void setCatalogId(int catalogId) {
90
	public LocalDateTime getEndDate() {
71
		this.catalogId = catalogId;
91
		return endDate;
72
	}
92
	}
73
 
93
 
-
 
94
	public void setEndDate(LocalDateTime endDate) {
-
 
95
		this.endDate = endDate;
74
 
96
	}
75
}
97
}