Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
25503 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
25505 amit.gupta 8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
25503 amit.gupta 10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
14
 
15
@Entity
16
@Table(name = "fofo.partner_type_change", schema = "fofo")
17
public class PartnerTypeChange implements Serializable {
18
 
19
	/**
20
	 * 
21
	 */
22
	private static final long serialVersionUID = 1L;
23
 
24
	@Id
25
	@Column(name = "id")
26
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	private int id;
28
 
29
	@Column(name = "fofo_id")
30
	private int fofoId;
31
 
32
	@Column(name = "partner_type")
25505 amit.gupta 33
	@Enumerated(EnumType.STRING)
25503 amit.gupta 34
	private PartnerType partnerType;
35
 
36
	@Column(name = "create_timestamp")
37
	private LocalDateTime createTimestamp;
38
 
39
 
40
 
41
	@Override
42
	public int hashCode() {
43
		final int prime = 31;
44
		int result = 1;
45
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
46
		result = prime * result + fofoId;
47
		result = prime * result + id;
48
		result = prime * result + ((partnerType == null) ? 0 : partnerType.hashCode());
49
		return result;
50
	}
51
 
52
 
53
 
54
	public PartnerType getPartnerType() {
55
		return partnerType;
56
	}
57
 
58
 
59
 
60
	public void setPartnerType(PartnerType partnerType) {
61
		this.partnerType = partnerType;
62
	}
63
 
64
 
65
 
66
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
67
		this.createTimestamp = createTimestamp;
68
	}
26914 amit.gupta 69
 
25503 amit.gupta 70
 
71
 
72
 
26914 amit.gupta 73
	public LocalDateTime getCreateTimestamp() {
74
		return createTimestamp;
75
	}
76
 
77
 
78
 
25503 amit.gupta 79
	@Override
80
	public boolean equals(Object obj) {
81
		if (this == obj)
82
			return true;
83
		if (obj == null)
84
			return false;
85
		if (getClass() != obj.getClass())
86
			return false;
87
		PartnerTypeChange other = (PartnerTypeChange) obj;
88
		if (createTimestamp == null) {
89
			if (other.createTimestamp != null)
90
				return false;
91
		} else if (!createTimestamp.equals(other.createTimestamp))
92
			return false;
93
		if (fofoId != other.fofoId)
94
			return false;
95
		if (id != other.id)
96
			return false;
97
		if (partnerType != other.partnerType)
98
			return false;
99
		return true;
100
	}
101
 
102
 
103
 
104
	public int getId() {
105
		return id;
106
	}
107
 
108
	public void setId(int id) {
109
		this.id = id;
110
	}
111
 
112
	public int getFofoId() {
113
		return fofoId;
114
	}
115
 
116
	public void setFofoId(int fofoId) {
117
		this.fofoId = fofoId;
118
	}
119
 
120
	@Override
121
	public String toString() {
122
		return "PartnerTypeChange [id=" + id + ", fofoId=" + fofoId + ", partnerType=" + partnerType
123
				+ ", createTimestamp=" + createTimestamp + "]";
124
	}
125
}