Subversion Repositories SmartDukaan

Rev

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