Subversion Repositories SmartDukaan

Rev

Rev 31490 | Rev 31492 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31483 tejbeer 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import java.util.Objects;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
31491 tejbeer 7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
31483 tejbeer 9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
@Entity
31484 tejbeer 13
@Table(name = "catalog.brand", schema = "catalog")
31490 tejbeer 14
public class BrandCatalog {
31483 tejbeer 15
 
16
	@Id
17
	@Column(name = "id", columnDefinition = "int(11)")
31491 tejbeer 18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
31483 tejbeer 19
	private int id;
20
 
21
	@Column(name = "name")
22
	private String name;
23
 
24
	@Column(name = "logo_url")
25
	private String logoUrl;
26
 
27
	@Column(name = "logo_url_transparent")
28
	private String logoUrlTransparent;
29
 
30
	public int getId() {
31
		return id;
32
	}
33
 
34
	public void setId(int id) {
35
		this.id = id;
36
	}
37
 
38
	public String getName() {
39
		return name;
40
	}
41
 
42
	public void setName(String name) {
43
		this.name = name;
44
	}
45
 
46
	public String getLogoUrl() {
47
		return logoUrl;
48
	}
49
 
50
	public void setLogoUrl(String logoUrl) {
51
		this.logoUrl = logoUrl;
52
	}
53
 
54
	public String getLogoUrlTransparent() {
55
		return logoUrlTransparent;
56
	}
57
 
58
	public void setLogoUrlTransparent(String logoUrlTransparent) {
59
		this.logoUrlTransparent = logoUrlTransparent;
60
	}
61
 
62
	@Override
63
	public int hashCode() {
64
		return Objects.hash(id, logoUrl, logoUrlTransparent, name);
65
	}
66
 
67
	@Override
68
	public boolean equals(Object obj) {
69
		if (this == obj)
70
			return true;
71
		if (obj == null)
72
			return false;
73
		if (getClass() != obj.getClass())
74
			return false;
31490 tejbeer 75
		BrandCatalog other = (BrandCatalog) obj;
31483 tejbeer 76
		return id == other.id && Objects.equals(logoUrl, other.logoUrl)
77
				&& Objects.equals(logoUrlTransparent, other.logoUrlTransparent) && Objects.equals(name, other.name);
78
	}
79
 
80
	@Override
81
	public String toString() {
82
		return "Brand [id=" + id + ", name=" + name + ", logoUrl=" + logoUrl + ", logoUrlTransparent="
83
				+ logoUrlTransparent + "]";
84
	}
85
 
86
}