Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
31483 tejbeer 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
7
 
8
@Entity
9
@Table(name = "catalog.brand_category", schema = "catalog")
10
public class BrandCategory {
11
 
12
	@Id
13
	@Column(name = "id", columnDefinition = "int(11)")
14
	private int id;
15
 
16
	@Column(name = "brand_id")
17
	private int brandId;
18
 
19
	@Column(name = "category_id")
31493 tejbeer 20
	private int categoryId;
31483 tejbeer 21
 
22
	@Column(name = "rank")
23
	private int rank;
24
 
25
	@Column(name = "active")
26
	private boolean active;
27
 
28
	public int getId() {
29
		return id;
30
	}
31
 
32
	public void setId(int id) {
33
		this.id = id;
34
	}
35
 
36
	public int getBrandId() {
37
		return brandId;
38
	}
39
 
40
	public void setBrandId(int brandId) {
41
		this.brandId = brandId;
42
	}
43
 
31493 tejbeer 44
	public int getCategoryId() {
31483 tejbeer 45
		return categoryId;
46
	}
47
 
31493 tejbeer 48
	public void setCategoryId(int categoryId) {
31483 tejbeer 49
		this.categoryId = categoryId;
50
	}
51
 
52
	public int getRank() {
53
		return rank;
54
	}
55
 
56
	public void setRank(int rank) {
57
		this.rank = rank;
58
	}
59
 
60
	public boolean isActive() {
61
		return active;
62
	}
63
 
64
	public void setActive(boolean active) {
65
		this.active = active;
66
	}
67
 
68
	@Override
69
	public String toString() {
70
		return "BrandCategory [id=" + id + ", brandId=" + brandId + ", categoryId=" + categoryId + ", rank=" + rank
71
				+ ", active=" + active + "]";
72
	}
73
 
74
}