Subversion Repositories SmartDukaan

Rev

Rev 31625 | Rev 31627 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31625 Rev 31626
Line 18... Line 18...
18
	@Column(name = "id")
18
	@Column(name = "id")
19
	@GeneratedValue(strategy = GenerationType.IDENTITY)
19
	@GeneratedValue(strategy = GenerationType.IDENTITY)
20
	private int id;
20
	private int id;
21
 
21
 
22
	@Column(name = "catalog_id")
22
	@Column(name = "catalog_id")
23
	private int catatlogId;
23
	private int catalogId;
24
 
24
 
25
	@Column(name = "fofo_id")
25
	@Column(name = "fofo_id")
26
	private int fofoId;
26
	private int fofoId;
27
 
27
 
28
	@Column(name = "created_timestamp")
28
	@Column(name = "created_timestamp")
Line 34... Line 34...
34
 
34
 
35
	public void setId(int id) {
35
	public void setId(int id) {
36
		this.id = id;
36
		this.id = id;
37
	}
37
	}
38
 
38
 
39
	public int getCatatlogId() {
39
	public int getCatalogId() {
40
		return catatlogId;
40
		return catalogId;
41
	}
41
	}
42
 
42
 
43
	public void setCatatlogId(int catatlogId) {
43
	public void setCatalogId(int catatlogId) {
44
		this.catatlogId = catatlogId;
44
		this.catalogId = catatlogId;
45
	}
45
	}
46
 
46
 
47
	public int getFofoId() {
47
	public int getFofoId() {
48
		return fofoId;
48
		return fofoId;
49
	}
49
	}
Line 60... Line 60...
60
		this.createdTimestamp = createdTimestamp;
60
		this.createdTimestamp = createdTimestamp;
61
	}
61
	}
62
 
62
 
63
	@Override
63
	@Override
64
	public int hashCode() {
64
	public int hashCode() {
65
		return Objects.hash(catatlogId, createdTimestamp, fofoId, id);
65
		return Objects.hash(catalogId, createdTimestamp, fofoId, id);
66
	}
66
	}
67
 
67
 
68
	@Override
68
	@Override
69
	public boolean equals(Object obj) {
69
	public boolean equals(Object obj) {
70
		if (this == obj)
70
		if (this == obj)
Line 72... Line 72...
72
		if (obj == null)
72
		if (obj == null)
73
			return false;
73
			return false;
74
		if (getClass() != obj.getClass())
74
		if (getClass() != obj.getClass())
75
			return false;
75
			return false;
76
		CatalogFavourite other = (CatalogFavourite) obj;
76
		CatalogFavourite other = (CatalogFavourite) obj;
77
		return catatlogId == other.catatlogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId
77
		return catatlogId == other.catalogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId
78
				&& id == other.id;
78
				&& id == other.id;
79
	}
79
	}
80
 
80
 
81
	@Override
81
	@Override
82
	public String toString() {
82
	public String toString() {
83
		return "CatalogFavourite [id=" + id + ", catatlogId=" + catatlogId + ", fofoId=" + fofoId
83
		return "CatalogFavourite [id=" + id + ", catatlogId=" + catalogId + ", fofoId=" + fofoId
84
				+ ", createdTimestamp=" + createdTimestamp + "]";
84
				+ ", createdTimestamp=" + createdTimestamp + "]";
85
	}
85
	}
86
 
86
 
87
}
87
}