Subversion Repositories SmartDukaan

Rev

Rev 31626 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31625 tejbeer 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.time.LocalDateTime;
4
import java.util.Objects;
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.catalog_favourite", schema = "fofo")
15
public class CatalogFavourite {
16
 
17
	@Id
18
	@Column(name = "id")
19
	@GeneratedValue(strategy = GenerationType.IDENTITY)
20
	private int id;
21
 
22
	@Column(name = "catalog_id")
23
	private int catatlogId;
24
 
25
	@Column(name = "fofo_id")
26
	private int fofoId;
27
 
28
	@Column(name = "created_timestamp")
29
	private LocalDateTime createdTimestamp;
30
 
31
	public int getId() {
32
		return id;
33
	}
34
 
35
	public void setId(int id) {
36
		this.id = id;
37
	}
38
 
39
	public int getCatatlogId() {
40
		return catatlogId;
41
	}
42
 
43
	public void setCatatlogId(int catatlogId) {
44
		this.catatlogId = catatlogId;
45
	}
46
 
47
	public int getFofoId() {
48
		return fofoId;
49
	}
50
 
51
	public void setFofoId(int fofoId) {
52
		this.fofoId = fofoId;
53
	}
54
 
55
	public LocalDateTime getCreatedTimestamp() {
56
		return createdTimestamp;
57
	}
58
 
59
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
60
		this.createdTimestamp = createdTimestamp;
61
	}
62
 
63
	@Override
64
	public int hashCode() {
65
		return Objects.hash(catatlogId, createdTimestamp, fofoId, id);
66
	}
67
 
68
	@Override
69
	public boolean equals(Object obj) {
70
		if (this == obj)
71
			return true;
72
		if (obj == null)
73
			return false;
74
		if (getClass() != obj.getClass())
75
			return false;
76
		CatalogFavourite other = (CatalogFavourite) obj;
77
		return catatlogId == other.catatlogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId
78
				&& id == other.id;
79
	}
80
 
81
	@Override
82
	public String toString() {
83
		return "CatalogFavourite [id=" + id + ", catatlogId=" + catatlogId + ", fofoId=" + fofoId
84
				+ ", createdTimestamp=" + createdTimestamp + "]";
85
	}
86
 
87
}