Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
@Entity
31484 tejbeer 11
@Table(name = "catalog.brand", schema = "catalog")
31483 tejbeer 12
public class Brand {
13
 
14
	@Id
15
	@Column(name = "id", columnDefinition = "int(11)")
16
	private int id;
17
 
18
	@Column(name = "name")
19
	private String name;
20
 
21
	@Column(name = "logo_url")
22
	private String logoUrl;
23
 
24
	@Column(name = "logo_url_transparent")
25
	private String logoUrlTransparent;
26
 
27
	public int getId() {
28
		return id;
29
	}
30
 
31
	public void setId(int id) {
32
		this.id = id;
33
	}
34
 
35
	public String getName() {
36
		return name;
37
	}
38
 
39
	public void setName(String name) {
40
		this.name = name;
41
	}
42
 
43
	public String getLogoUrl() {
44
		return logoUrl;
45
	}
46
 
47
	public void setLogoUrl(String logoUrl) {
48
		this.logoUrl = logoUrl;
49
	}
50
 
51
	public String getLogoUrlTransparent() {
52
		return logoUrlTransparent;
53
	}
54
 
55
	public void setLogoUrlTransparent(String logoUrlTransparent) {
56
		this.logoUrlTransparent = logoUrlTransparent;
57
	}
58
 
59
	@Override
60
	public int hashCode() {
61
		return Objects.hash(id, logoUrl, logoUrlTransparent, name);
62
	}
63
 
64
	@Override
65
	public boolean equals(Object obj) {
66
		if (this == obj)
67
			return true;
68
		if (obj == null)
69
			return false;
70
		if (getClass() != obj.getClass())
71
			return false;
72
		Brand other = (Brand) obj;
73
		return id == other.id && Objects.equals(logoUrl, other.logoUrl)
74
				&& Objects.equals(logoUrlTransparent, other.logoUrlTransparent) && Objects.equals(name, other.name);
75
	}
76
 
77
	@Override
78
	public String toString() {
79
		return "Brand [id=" + id + ", name=" + name + ", logoUrl=" + logoUrl + ", logoUrlTransparent="
80
				+ logoUrlTransparent + "]";
81
	}
82
 
83
}