Subversion Repositories SmartDukaan

Rev

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

Rev 31484 Rev 31490
Line 7... Line 7...
7
import javax.persistence.Id;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
8
import javax.persistence.Table;
9
 
9
 
10
@Entity
10
@Entity
11
@Table(name = "catalog.brand", schema = "catalog")
11
@Table(name = "catalog.brand", schema = "catalog")
12
public class Brand {
12
public class BrandCatalog {
13
 
13
 
14
	@Id
14
	@Id
15
	@Column(name = "id", columnDefinition = "int(11)")
15
	@Column(name = "id", columnDefinition = "int(11)")
16
	private int id;
16
	private int id;
17
 
17
 
Line 67... Line 67...
67
			return true;
67
			return true;
68
		if (obj == null)
68
		if (obj == null)
69
			return false;
69
			return false;
70
		if (getClass() != obj.getClass())
70
		if (getClass() != obj.getClass())
71
			return false;
71
			return false;
72
		Brand other = (Brand) obj;
72
		BrandCatalog other = (BrandCatalog) obj;
73
		return id == other.id && Objects.equals(logoUrl, other.logoUrl)
73
		return id == other.id && Objects.equals(logoUrl, other.logoUrl)
74
				&& Objects.equals(logoUrlTransparent, other.logoUrlTransparent) && Objects.equals(name, other.name);
74
				&& Objects.equals(logoUrlTransparent, other.logoUrlTransparent) && Objects.equals(name, other.name);
75
	}
75
	}
76
 
76
 
77
	@Override
77
	@Override