Subversion Repositories SmartDukaan

Rev

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

Rev 25011 Rev 30003
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.catalog;
1
package com.spice.profitmandi.dao.entity.catalog;
2
 
2
 
-
 
3
import java.util.List;
-
 
4
 
3
import javax.persistence.Column;
5
import javax.persistence.Column;
4
import javax.persistence.Entity;
6
import javax.persistence.Entity;
5
import javax.persistence.Id;
7
import javax.persistence.Id;
6
import javax.persistence.Table;
8
import javax.persistence.Table;
7
 
9
 
8
@Entity
10
@Entity
9
@Table(name="catalog.category", schema = "catalog")
11
@Table(name = "catalog.category", schema = "catalog")
10
public class Category {
12
public class Category {
11
	@Id
13
	@Id
12
	@Column(name="id", columnDefinition = "int(11)")
14
	@Column(name = "id", columnDefinition = "int(11)")
13
	private int id;
15
	private int id;
14
	
16
 
15
	@Column(name="label", length = 100)
17
	@Column(name = "label", length = 100)
16
	private String label;
18
	private String label;
17
 
19
 
-
 
20
	@Column(name = "description")
-
 
21
	private String description;
-
 
22
 
-
 
23
	@Column(name = "parent_category_id")
-
 
24
	private long parentCategoryId;
-
 
25
 
-
 
26
	@Column(name = "display_name")
-
 
27
	private String displayName;
-
 
28
 
-
 
29
	public String getDescription() {
-
 
30
		return description;
-
 
31
	}
-
 
32
 
-
 
33
	public void setDescription(String description) {
-
 
34
		this.description = description;
-
 
35
	}
-
 
36
 
-
 
37
	public long getParentCategoryId() {
-
 
38
		return parentCategoryId;
-
 
39
	}
-
 
40
 
-
 
41
	public void setParentCategoryId(long parentCategoryId) {
-
 
42
		this.parentCategoryId = parentCategoryId;
-
 
43
	}
-
 
44
 
-
 
45
	public String getDisplayName() {
-
 
46
		return displayName;
-
 
47
	}
-
 
48
 
-
 
49
	public void setDisplayName(String displayName) {
-
 
50
		this.displayName = displayName;
-
 
51
	}
-
 
52
 
18
	@Override
53
	@Override
19
	public int hashCode() {
54
	public int hashCode() {
20
		final int prime = 31;
55
		final int prime = 31;
21
		int result = 1;
56
		int result = 1;
22
		result = prime * result + id;
57
		result = prime * result + id;
Line 37... Line 72...
37
		return true;
72
		return true;
38
	}
73
	}
39
 
74
 
40
	@Override
75
	@Override
41
	public String toString() {
76
	public String toString() {
-
 
77
		return "Category [id=" + id + ", label=" + label + ", description=" + description + ", parentCategoryId="
42
		return "Category [id=" + id + ", label=" + label + "]";
78
				+ parentCategoryId + ", displayName=" + displayName + "]";
43
	}
79
	}
44
 
80
 
45
	public String getLabel() {
81
	public String getLabel() {
46
		return label;
82
		return label;
47
	}
83
	}
Line 55... Line 91...
55
	}
91
	}
56
 
92
 
57
	public void setId(int id) {
93
	public void setId(int id) {
58
		this.id = id;
94
		this.id = id;
59
	}
95
	}
60
	
-
 
61
	
96
 
62
}
97
}