Subversion Repositories SmartDukaan

Rev

Rev 31860 | 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
 
32736 ranu 3
import javax.persistence.*;
28272 tejbeer 4
import java.time.LocalDateTime;
5
 
6
@Entity
31860 tejbeer 7
@Table(name = "dtr.retailer_brands_limit")
28272 tejbeer 8
public class RetailerBrandsLimit {
9
 
10
	@Id
11
	@Column(name = "id", unique = false, updatable = false)
12
	@GeneratedValue(strategy = GenerationType.IDENTITY)
13
	private int id;
30044 tejbeer 14
 
28272 tejbeer 15
	@Column(name = "brand_name")
16
	private String brandName;
30044 tejbeer 17
 
28272 tejbeer 18
	@Column(name = "is_update")
19
	private int isUpdate;
20
	@Column(name = "partner_id")
21
	private int partnerId;
32736 ranu 22
 
28272 tejbeer 23
	@Column(name = "brand_limit")
24
	private float brandLimit;
30044 tejbeer 25
 
32736 ranu 26
	public float getBrandLimit(float defaultValue) {
27
		if (this.getBrandLimit() == 0d) {
28
			return defaultValue;
29
		}
30
		return this.getBrandLimit();
31
	}
32
 
30030 manish 33
	@Column(name = "min_stock_limit")
34
	private float minStockLimit;
32736 ranu 35
 
36
	public float getMinStockLimit(float defaultValue) {
37
		if (this.getMinStockLimit() == 0d) {
38
			return defaultValue;
39
		}
40
		return this.getMinStockLimit();
41
	}
28272 tejbeer 42
	@Column(name = "create_timestamp")
43
	private LocalDateTime createdTimestamp;
44
 
45
	@Column(name = "updated_timestamp")
46
	private LocalDateTime updatedTimestamp;
47
 
48
	public String getBrandName() {
49
		return brandName;
50
	}
30030 manish 51
 
52
 
53
 
28272 tejbeer 54
 
30030 manish 55
	public float getMinStockLimit() {
56
		return minStockLimit;
57
	}
58
 
59
	public void setMinStockLimit(float minStockLimit) {
60
		this.minStockLimit = minStockLimit;
61
	}
62
 
28272 tejbeer 63
	public void setBrandName(String brandName) {
64
		this.brandName = brandName;
65
	}
66
 
67
	public int getPartnerId() {
68
		return partnerId;
69
	}
70
 
71
	public void setPartnerId(int partnerId) {
72
		this.partnerId = partnerId;
73
	}
74
 
75
	public float getBrandLimit() {
76
		return brandLimit;
77
	}
78
 
79
	public void setBrandLimit(float brandLimit) {
80
		this.brandLimit = brandLimit;
81
	}
82
 
83
	public LocalDateTime getCreatedTimestamp() {
84
		return createdTimestamp;
85
	}
86
 
87
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
88
		this.createdTimestamp = createdTimestamp;
89
	}
90
 
91
	public LocalDateTime getUpdatedTimestamp() {
92
		return updatedTimestamp;
93
	}
94
 
95
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
96
		this.updatedTimestamp = updatedTimestamp;
97
	}
98
 
99
	public int getId() {
100
		return id;
101
	}
102
 
103
	public void setId(int id) {
104
		this.id = id;
105
	}
106
 
107
	public int getIsUpdate() {
108
		return isUpdate;
109
	}
110
 
111
	public void setIsUpdate(int isUpdate) {
112
		this.isUpdate = isUpdate;
113
	}
114
 
115
	@Override
116
	public String toString() {
30030 manish 117
		return "RetailerBrandsLimit [id=" + id + ", brandName=" + brandName + ", isUpdate=" + isUpdate + ", partnerId="
118
				+ partnerId + ", brandLimit=" + brandLimit + ", minStockLimit=" + minStockLimit + ", createdTimestamp="
119
				+ createdTimestamp + ", updatedTimestamp=" + updatedTimestamp + "]";
28272 tejbeer 120
	}
121
 
122
	public RetailerBrandsLimit() {
123
		super();
30044 tejbeer 124
 
28272 tejbeer 125
	}
126
 
127
}