Subversion Repositories SmartDukaan

Rev

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

Rev 24383 Rev 24417
Line 15... Line 15...
15
 * @author amit
15
 * @author amit
16
 *
16
 *
17
 */
17
 */
18
 
18
 
19
@Entity
19
@Entity
20
@Table(name="cs.sub_category", schema = "cs")
20
@Table(name="cs.ticket_sub_category", schema = "cs")
21
public class TicketSubCategory implements Serializable{
21
public class TicketSubCategory implements Serializable{
22
	
22
	
23
	private static final long serialVersionUID = 1L;
23
	private static final long serialVersionUID = 1L;
24
	
24
	
25
	@Id
25
	@Id
26
	@Column(name="id", unique=true, updatable=false)
26
	@Column(name="id", unique=true, updatable=false)
27
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	@GeneratedValue(strategy = GenerationType.IDENTITY)
28
	private int id;
28
	private int id;
29
	
29
	
30
	@Column(name="category_id")
30
	@Column(name="category_id")
31
	private int category_id;
31
	private int categoryId;
32
	
32
	
33
	@Override
33
	@Override
34
	public int hashCode() {
34
	public int hashCode() {
35
		final int prime = 31;
35
		final int prime = 31;
36
		int result = 1;
36
		int result = 1;
37
		result = prime * result + category_id;
37
		result = prime * result + categoryId;
38
		result = prime * result + ((description == null) ? 0 : description.hashCode());
38
		result = prime * result + ((description == null) ? 0 : description.hashCode());
39
		result = prime * result + id;
39
		result = prime * result + id;
40
		result = prime * result + ((name == null) ? 0 : name.hashCode());
40
		result = prime * result + ((name == null) ? 0 : name.hashCode());
41
		return result;
41
		return result;
42
	}
42
	}
Line 48... Line 48...
48
		if (obj == null)
48
		if (obj == null)
49
			return false;
49
			return false;
50
		if (getClass() != obj.getClass())
50
		if (getClass() != obj.getClass())
51
			return false;
51
			return false;
52
		TicketSubCategory other = (TicketSubCategory) obj;
52
		TicketSubCategory other = (TicketSubCategory) obj;
53
		if (category_id != other.category_id)
53
		if (categoryId != other.categoryId)
54
			return false;
54
			return false;
55
		if (description == null) {
55
		if (description == null) {
56
			if (other.description != null)
56
			if (other.description != null)
57
				return false;
57
				return false;
58
		} else if (!description.equals(other.description))
58
		} else if (!description.equals(other.description))
Line 73... Line 73...
73
 
73
 
74
	public void setId(int id) {
74
	public void setId(int id) {
75
		this.id = id;
75
		this.id = id;
76
	}
76
	}
77
 
77
 
78
	public int getCategory_id() {
78
	public int getcategoryId() {
79
		return category_id;
79
		return categoryId;
80
	}
80
	}
81
 
81
 
82
	public void setCategory_id(int category_id) {
82
	public void setcategoryId(int categoryId) {
83
		this.category_id = category_id;
83
		this.categoryId = categoryId;
84
	}
84
	}
85
 
85
 
86
	public String getName() {
86
	public String getName() {
87
		return name;
87
		return name;
88
	}
88
	}
Line 99... Line 99...
99
		this.description = description;
99
		this.description = description;
100
	}
100
	}
101
 
101
 
102
	@Override
102
	@Override
103
	public String toString() {
103
	public String toString() {
104
		return "TicketSubCategory [id=" + id + ", category_id=" + category_id + ", name=" + name + ", description="
104
		return "TicketSubCategory [id=" + id + ", categoryId=" + categoryId + ", name=" + name + ", description="
105
				+ description + "]";
105
				+ description + "]";
106
	}
106
	}
107
 
107
 
108
	@Column(name="name", unique = true)
108
	@Column(name="name", unique = true)
109
	private String name;
109
	private String name;