Subversion Repositories SmartDukaan

Rev

Rev 31860 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23405 amit.gupta 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
30003 tejbeer 3
import java.util.List;
4
 
23405 amit.gupta 5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
@Entity
31860 tejbeer 11
@Table(name = "catalog.category")
23405 amit.gupta 12
public class Category {
13
	@Id
30003 tejbeer 14
	@Column(name = "id", columnDefinition = "int(11)")
23405 amit.gupta 15
	private int id;
30003 tejbeer 16
 
17
	@Column(name = "label", length = 100)
23405 amit.gupta 18
	private String label;
19
 
30003 tejbeer 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
 
34814 vikas 29
	@Column(name = "image_id")
30
	private long imageId;
31
 
32
	@Column(name = "status")
33
	private boolean status;
34
 
35
	@Column(name = "featured")
36
	private boolean featured;
37
 
38
	public long getImageId() {
39
		return imageId;
40
	}
41
 
42
	public void setImageId(long imageId) {
43
		this.imageId = imageId;
44
	}
45
 
46
	public boolean isStatus() {
47
		return status;
48
	}
49
 
50
	public void setStatus(boolean status) {
51
		this.status = status;
52
	}
53
 
54
	public boolean isFeatured() {
55
		return featured;
56
	}
57
 
58
	public void setFeatured(boolean featured) {
59
		this.featured = featured;
60
	}
61
 
30003 tejbeer 62
	public String getDescription() {
63
		return description;
64
	}
65
 
66
	public void setDescription(String description) {
67
		this.description = description;
68
	}
69
 
70
	public long getParentCategoryId() {
71
		return parentCategoryId;
72
	}
73
 
74
	public void setParentCategoryId(long parentCategoryId) {
75
		this.parentCategoryId = parentCategoryId;
76
	}
77
 
78
	public String getDisplayName() {
79
		return displayName;
80
	}
81
 
82
	public void setDisplayName(String displayName) {
83
		this.displayName = displayName;
84
	}
85
 
23405 amit.gupta 86
	@Override
87
	public int hashCode() {
88
		final int prime = 31;
89
		int result = 1;
90
		result = prime * result + id;
91
		return result;
92
	}
93
 
94
	@Override
95
	public boolean equals(Object obj) {
96
		if (this == obj)
97
			return true;
98
		if (obj == null)
99
			return false;
100
		if (getClass() != obj.getClass())
101
			return false;
102
		Category other = (Category) obj;
103
		if (id != other.id)
104
			return false;
105
		return true;
106
	}
107
 
108
	@Override
109
	public String toString() {
30003 tejbeer 110
		return "Category [id=" + id + ", label=" + label + ", description=" + description + ", parentCategoryId="
111
				+ parentCategoryId + ", displayName=" + displayName + "]";
23405 amit.gupta 112
	}
113
 
114
	public String getLabel() {
115
		return label;
116
	}
117
 
118
	public void setLabel(String label) {
119
		this.label = label;
120
	}
25011 amit.gupta 121
 
122
	public int getId() {
123
		return id;
124
	}
125
 
126
	public void setId(int id) {
127
		this.id = id;
128
	}
30003 tejbeer 129
 
23405 amit.gupta 130
}