Subversion Repositories SmartDukaan

Rev

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

Rev 24417 Rev 27124
Line 64... Line 64...
64
 
64
 
65
	@Override
65
	@Override
66
	public int hashCode() {
66
	public int hashCode() {
67
		final int prime = 31;
67
		final int prime = 31;
68
		int result = 1;
68
		int result = 1;
69
		result = prime * result + ((description == null) ? 0 : description.hashCode());
-
 
70
		result = prime * result + id;
69
		result = prime * result + id;
71
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
72
		return result;
70
		return result;
73
	}
71
	}
74
 
72
 
75
	@Override
73
	@Override
76
	public boolean equals(Object obj) {
74
	public boolean equals(Object obj) {
Line 79... Line 77...
79
		if (obj == null)
77
		if (obj == null)
80
			return false;
78
			return false;
81
		if (getClass() != obj.getClass())
79
		if (getClass() != obj.getClass())
82
			return false;
80
			return false;
83
		TicketCategory other = (TicketCategory) obj;
81
		TicketCategory other = (TicketCategory) obj;
84
		if (description == null) {
-
 
85
			if (other.description != null)
-
 
86
				return false;
-
 
87
		} else if (!description.equals(other.description))
-
 
88
			return false;
-
 
89
		if (id != other.id)
82
		if (id != other.id)
90
			return false;
83
			return false;
91
		if (name == null) {
-
 
92
			if (other.name != null)
-
 
93
				return false;
-
 
94
		} else if (!name.equals(other.name))
-
 
95
			return false;
-
 
96
		return true;
84
		return true;
97
	}
85
	}
98
	
86
	
99
	
87
	
100
	
88