Subversion Repositories SmartDukaan

Rev

Rev 31627 | Details | Compare with Previous | 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
31860 tejbeer 14
@Table(name = "fofo.catalog_favourite")
31625 tejbeer 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")
31626 tejbeer 23
	private int catalogId;
31625 tejbeer 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
 
31626 tejbeer 39
	public int getCatalogId() {
40
		return catalogId;
31625 tejbeer 41
	}
42
 
31626 tejbeer 43
	public void setCatalogId(int catatlogId) {
44
		this.catalogId = catatlogId;
31625 tejbeer 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() {
31626 tejbeer 65
		return Objects.hash(catalogId, createdTimestamp, fofoId, id);
31625 tejbeer 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;
31627 tejbeer 77
		return catalogId == other.catalogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId
31625 tejbeer 78
				&& id == other.id;
79
	}
80
 
81
	@Override
82
	public String toString() {
31626 tejbeer 83
		return "CatalogFavourite [id=" + id + ", catatlogId=" + catalogId + ", fofoId=" + fofoId
31625 tejbeer 84
				+ ", createdTimestamp=" + createdTimestamp + "]";
85
	}
86
 
87
}