Subversion Repositories SmartDukaan

Rev

Rev 28908 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28908 Rev 35971
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.user;
1
package com.spice.profitmandi.dao.entity.user;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
 
-
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Entity;
-
 
7
import javax.persistence.EnumType;
-
 
8
import javax.persistence.Enumerated;
-
 
9
import javax.persistence.GeneratedValue;
-
 
10
import javax.persistence.GenerationType;
-
 
11
import javax.persistence.Id;
-
 
12
import javax.persistence.Table;
-
 
13
import javax.persistence.Transient;
-
 
14
 
-
 
15
import com.spice.profitmandi.dao.enumuration.dtr.StoreTimeline;
3
import com.spice.profitmandi.dao.enumuration.dtr.StoreTimeline;
16
 
4
 
-
 
5
import javax.persistence.*;
-
 
6
import java.time.LocalDateTime;
-
 
7
import java.util.Objects;
-
 
8
 
17
@Entity
9
@Entity
18
@Table(name = "user.store_timeline")
10
@Table(name = "user.store_timeline")
19
public class StoreTimelinetb {
11
public class StoreTimelinetb {
20
	@Id
12
	@Id
21
	@Column(name = "id")
13
	@Column(name = "id")
Line 23... Line 15...
23
	private int id;
15
	private int id;
24
 
16
 
25
	@Column(name = "onboarding_id")
17
	@Column(name = "onboarding_id")
26
	private int onboardingId;
18
	private int onboardingId;
27
 
19
 
-
 
20
	@Column(name = "loi_id")
-
 
21
	private Integer loiId;
-
 
22
 
28
	@Column(name = "event_name")
23
	@Column(name = "event_name")
29
	@Enumerated(EnumType.STRING)
24
	@Enumerated(EnumType.STRING)
30
	private StoreTimeline eventName;
25
	private StoreTimeline eventName;
31
 
26
 
32
	@Column(name = "complete_date")
27
	@Column(name = "complete_date")
33
	private LocalDateTime completeDate;
28
	private LocalDateTime completeDate;
34
 
29
 
-
 
30
 
35
	@Transient
31
	@Transient
36
	private int fofoId;
32
	private int fofoId;
37
 
33
 
38
	public int getFofoId() {
34
	public int getFofoId() {
39
		return fofoId;
35
		return fofoId;
Line 73... Line 69...
73
 
69
 
74
	public void setCompleteDate(LocalDateTime completeDate) {
70
	public void setCompleteDate(LocalDateTime completeDate) {
75
		this.completeDate = completeDate;
71
		this.completeDate = completeDate;
76
	}
72
	}
77
 
73
 
-
 
74
	public Integer getLoiId() {
-
 
75
		return loiId;
-
 
76
	}
-
 
77
 
-
 
78
	public void setLoiId(Integer loiId) {
-
 
79
		this.loiId = loiId;
-
 
80
	}
-
 
81
 
-
 
82
 
78
	@Override
83
	@Override
79
	public String toString() {
84
	public String toString() {
-
 
85
		return "StoreTimelinetb{" +
-
 
86
				"id=" + id +
80
		return "StoreTimelinetb [id=" + id + ", onboardingId=" + onboardingId + ", eventName=" + eventName
87
				", onboardingId=" + onboardingId +
-
 
88
				", loiId=" + loiId +
-
 
89
				", eventName=" + eventName +
81
				+ ", completeDate=" + completeDate + "]";
90
				", completeDate=" + completeDate +
-
 
91
				", fofoId=" + fofoId +
-
 
92
				'}';
-
 
93
	}
-
 
94
 
-
 
95
	@Override
-
 
96
	public boolean equals(Object o) {
-
 
97
		if (o == null || getClass() != o.getClass()) return false;
-
 
98
		StoreTimelinetb that = (StoreTimelinetb) o;
-
 
99
		return id == that.id && onboardingId == that.onboardingId && Objects.equals(loiId, that.loiId) && fofoId == that.fofoId && eventName == that.eventName && Objects.equals(completeDate, that.completeDate);
82
	}
100
	}
83
 
101
 
-
 
102
	@Override
-
 
103
	public int hashCode() {
-
 
104
		return Objects.hash(id, onboardingId, loiId, eventName, completeDate, fofoId);
-
 
105
	}
84
}
106
}