Subversion Repositories SmartDukaan

Rev

Rev 34814 | 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
 
35694 amit 38
	@Column(name = "margin_only")
39
	private boolean marginOnly;
40
 
34814 vikas 41
	public long getImageId() {
42
		return imageId;
43
	}
44
 
45
	public void setImageId(long imageId) {
46
		this.imageId = imageId;
47
	}
48
 
49
	public boolean isStatus() {
50
		return status;
51
	}
52
 
53
	public void setStatus(boolean status) {
54
		this.status = status;
55
	}
56
 
57
	public boolean isFeatured() {
58
		return featured;
59
	}
60
 
61
	public void setFeatured(boolean featured) {
62
		this.featured = featured;
63
	}
64
 
35694 amit 65
	public boolean isMarginOnly() {
66
		return marginOnly;
67
	}
68
 
69
	public void setMarginOnly(boolean marginOnly) {
70
		this.marginOnly = marginOnly;
71
	}
72
 
30003 tejbeer 73
	public String getDescription() {
74
		return description;
75
	}
76
 
77
	public void setDescription(String description) {
78
		this.description = description;
79
	}
80
 
81
	public long getParentCategoryId() {
82
		return parentCategoryId;
83
	}
84
 
85
	public void setParentCategoryId(long parentCategoryId) {
86
		this.parentCategoryId = parentCategoryId;
87
	}
88
 
89
	public String getDisplayName() {
90
		return displayName;
91
	}
92
 
93
	public void setDisplayName(String displayName) {
94
		this.displayName = displayName;
95
	}
96
 
23405 amit.gupta 97
	@Override
98
	public int hashCode() {
99
		final int prime = 31;
100
		int result = 1;
101
		result = prime * result + id;
102
		return result;
103
	}
104
 
105
	@Override
106
	public boolean equals(Object obj) {
107
		if (this == obj)
108
			return true;
109
		if (obj == null)
110
			return false;
111
		if (getClass() != obj.getClass())
112
			return false;
113
		Category other = (Category) obj;
114
		if (id != other.id)
115
			return false;
116
		return true;
117
	}
118
 
119
	@Override
120
	public String toString() {
30003 tejbeer 121
		return "Category [id=" + id + ", label=" + label + ", description=" + description + ", parentCategoryId="
122
				+ parentCategoryId + ", displayName=" + displayName + "]";
23405 amit.gupta 123
	}
124
 
125
	public String getLabel() {
126
		return label;
127
	}
128
 
129
	public void setLabel(String label) {
130
		this.label = label;
131
	}
25011 amit.gupta 132
 
133
	public int getId() {
134
		return id;
135
	}
136
 
137
	public void setId(int id) {
138
		this.id = id;
139
	}
30003 tejbeer 140
 
23405 amit.gupta 141
}