Subversion Repositories SmartDukaan

Rev

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