Subversion Repositories SmartDukaan

Rev

Rev 31860 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31860 Rev 32923
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.cs;
1
package com.spice.profitmandi.dao.entity.cs;
2
 
2
 
-
 
3
import javax.persistence.*;
3
import java.io.Serializable;
4
import java.io.Serializable;
4
 
5
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Entity;
-
 
7
import javax.persistence.GeneratedValue;
-
 
8
import javax.persistence.GenerationType;
-
 
9
import javax.persistence.Id;
-
 
10
import javax.persistence.Table;
-
 
11
 
-
 
12
/**
6
/**
13
 * This class basically contains api details
7
 * This class basically contains api details
14
 * 
8
 * 
15
 * @author amit
9
 * @author amit
16
 *
10
 *
Line 31... Line 25...
31
	private String name;
25
	private String name;
32
	
26
	
33
	@Column(name = "description")
27
	@Column(name = "description")
34
	private String description;
28
	private String description;
35
 
29
 
-
 
30
	@Column(name = "category_type")
-
 
31
	private boolean categoryType;
-
 
32
 
-
 
33
	public int getId() {
-
 
34
		return id;
-
 
35
	}
-
 
36
 
36
	@Override
37
	@Override
37
	public String toString() {
38
	public String toString() {
-
 
39
		return "TicketCategory{" +
-
 
40
				"id=" + id +
-
 
41
				", name='" + name + '\'' +
38
		return "TicketCategory [id=" + id + ", name=" + name + ", description=" + description + "]";
42
				", description='" + description + '\'' +
-
 
43
				", categoryType='" + categoryType + '\'' +
-
 
44
				'}';
39
	}
45
	}
40
 
46
 
41
	public int getId() {
47
	public boolean isCategoryType() {
42
		return id;
48
		return categoryType;
-
 
49
	}
-
 
50
 
-
 
51
	public void setCategoryType(boolean categoryType) {
-
 
52
		this.categoryType = categoryType;
43
	}
53
	}
44
 
54
 
45
	public void setId(int id) {
55
	public void setId(int id) {
46
		this.id = id;
56
		this.id = id;
47
	}
57
	}
Line 81... Line 91...
81
		TicketCategory other = (TicketCategory) obj;
91
		TicketCategory other = (TicketCategory) obj;
82
		if (id != other.id)
92
		if (id != other.id)
83
			return false;
93
			return false;
84
		return true;
94
		return true;
85
	}
95
	}
86
	
96
 
87
	
97
 
88
	
98
 
89
        
99
 
90
}
100
}
91
101