Subversion Repositories SmartDukaan

Rev

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

Rev 21720 Rev 21924
Line 62... Line 62...
62
	}
62
	}
63
	public void setBrandId(int brandId) {
63
	public void setBrandId(int brandId) {
64
		this.brandId = brandId;
64
		this.brandId = brandId;
65
	}
65
	}
66
 
66
 
-
 
67
	
-
 
68
	@Override
-
 
69
	public int hashCode() {
-
 
70
		final int prime = 31;
-
 
71
		int result = 1;
-
 
72
		result = prime * result + brandId;
-
 
73
		result = prime * result + id;
-
 
74
		result = prime * result + retailerId;
-
 
75
		return result;
-
 
76
	}
-
 
77
 
-
 
78
	@Override
-
 
79
	public boolean equals(Object obj) {
-
 
80
		if (this == obj)
-
 
81
			return true;
-
 
82
		if (obj == null)
-
 
83
			return false;
-
 
84
		if (getClass() != obj.getClass())
-
 
85
			return false;
-
 
86
		RetailerBrand other = (RetailerBrand) obj;
-
 
87
		if (brandId != other.brandId)
-
 
88
			return false;
-
 
89
		if (id != other.id)
-
 
90
			return false;
-
 
91
		if (retailerId != other.retailerId)
-
 
92
			return false;
-
 
93
		return true;
-
 
94
	}
-
 
95
 
67
	@Override
96
	@Override
68
	public String toString() {
97
	public String toString() {
69
		return "RetailerBrand [retailerId=" + retailerId + ", brandId=" + brandId + "]";
98
		return "RetailerBrand [retailerId=" + retailerId + ", brandId=" + brandId + "]";
70
	}
99
	}
71
	
100