Subversion Repositories SmartDukaan

Rev

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