Subversion Repositories SmartDukaan

Rev

Rev 30044 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28272 tejbeer 1
package com.spice.profitmandi.dao.entity.dtr;
2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
30044 tejbeer 10
import javax.persistence.NamedQueries;
11
import javax.persistence.NamedQuery;
28272 tejbeer 12
import javax.persistence.Table;
13
 
14
@Entity
31860 tejbeer 15
@Table(name = "dtr.brands_limit")
30044 tejbeer 16
 
17
@NamedQueries({
18
		@NamedQuery(name = "BrandLimit.selectAllPartnerBrandLimit", query = "select new com.spice.profitmandi.dao.model.PartnerBrandLimit(fs.id,bl.brandName,"
19
				+ " case when rbl.partnerId is null then bl.stockLimit else rbl.minStockLimit end) "
20
				+ " from FofoStore fs join BrandLimit bl on 1=1"
21
				+ " left join RetailerBrandsLimit rbl on (rbl.brandName = bl.brandName and rbl.partnerId = fs.id)"), })
28272 tejbeer 22
public class BrandLimit {
30044 tejbeer 23
 
28272 tejbeer 24
	@Id
25
	@Column(name = "id", unique = false, updatable = false)
26
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	private int id;
30044 tejbeer 28
 
28272 tejbeer 29
	@Column(name = "brand_name")
30
	private String brandName;
31
	@Column(name = "brand_limit")
32
	private float brandLimit;
33
	@Column(name = "created_time_stamp")
34
	private LocalDateTime createdTimestamp;
30044 tejbeer 35
 
30031 manish 36
	@Column(name = "stock_limit")
37
	private float stockLimit;
28272 tejbeer 38
 
39
	@Column(name = "updated_time_stamp")
40
	private LocalDateTime updatedTimestamp;
41
 
42
	public int getId() {
43
		return id;
44
	}
45
 
46
	public void setId(int id) {
47
		this.id = id;
48
	}
30044 tejbeer 49
 
30031 manish 50
	public float getStockLimit() {
51
		return stockLimit;
52
	}
28272 tejbeer 53
 
30031 manish 54
	public void setStockLimit(float stockLimit) {
55
		this.stockLimit = stockLimit;
56
	}
57
 
28272 tejbeer 58
	public String getBrandName() {
59
		return brandName;
60
	}
61
 
62
	public void setBrandName(String brandName) {
63
		this.brandName = brandName;
64
	}
65
 
66
	public float getBrandLimit() {
67
		return brandLimit;
68
	}
69
 
70
	public void setBrandLimit(float brandLimit) {
71
		this.brandLimit = brandLimit;
72
	}
73
 
74
	public LocalDateTime getCreatedTimestamp() {
75
		return createdTimestamp;
76
	}
77
 
78
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
79
		this.createdTimestamp = createdTimestamp;
80
	}
81
 
82
	public LocalDateTime getUpdatedTimestamp() {
83
		return updatedTimestamp;
84
	}
85
 
86
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
87
		this.updatedTimestamp = updatedTimestamp;
88
	}
89
 
90
	@Override
91
	public String toString() {
92
		return "BrandLimit [id=" + id + ", brandName=" + brandName + ", brandLimit=" + brandLimit
30031 manish 93
				+ ", createdTimestamp=" + createdTimestamp + ", stockLimit=" + stockLimit + ", updatedTimestamp="
94
				+ updatedTimestamp + "]";
28272 tejbeer 95
	}
96
 
97
	public BrandLimit() {
98
		super();
99
		// TODO Auto-generated constructor stub
100
	}
101
 
102
}