Subversion Repositories SmartDukaan

Rev

Rev 31860 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31860 Rev 32736
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.dtr;
1
package com.spice.profitmandi.dao.entity.dtr;
2
 
2
 
-
 
3
import javax.persistence.*;
3
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
4
 
5
 
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;
-
 
10
import javax.persistence.Table;
-
 
11
 
-
 
12
@Entity
6
@Entity
13
@Table(name = "dtr.retailer_brands_limit")
7
@Table(name = "dtr.retailer_brands_limit")
14
public class RetailerBrandsLimit {
8
public class RetailerBrandsLimit {
15
	
9
	
16
	@Id
10
	@Id
Line 23... Line 17...
23
 
17
 
24
	@Column(name = "is_update")
18
	@Column(name = "is_update")
25
	private int isUpdate;
19
	private int isUpdate;
26
	@Column(name = "partner_id")
20
	@Column(name = "partner_id")
27
	private int partnerId;
21
	private int partnerId;
-
 
22
 
28
	@Column(name = "brand_limit")
23
	@Column(name = "brand_limit")
29
	private float brandLimit;
24
	private float brandLimit;
30
 
25
 
-
 
26
	public float getBrandLimit(float defaultValue) {
-
 
27
		if (this.getBrandLimit() == 0d) {
-
 
28
			return defaultValue;
-
 
29
		}
-
 
30
		return this.getBrandLimit();
-
 
31
	}
-
 
32
 
31
	@Column(name = "min_stock_limit")
33
	@Column(name = "min_stock_limit")
32
	private float minStockLimit;
34
	private float minStockLimit;
-
 
35
 
-
 
36
	public float getMinStockLimit(float defaultValue) {
-
 
37
		if (this.getMinStockLimit() == 0d) {
-
 
38
			return defaultValue;
-
 
39
		}
-
 
40
		return this.getMinStockLimit();
-
 
41
	}
33
	@Column(name = "create_timestamp")
42
	@Column(name = "create_timestamp")
34
	private LocalDateTime createdTimestamp;
43
	private LocalDateTime createdTimestamp;
35
 
44
 
36
	@Column(name = "updated_timestamp")
45
	@Column(name = "updated_timestamp")
37
	private LocalDateTime updatedTimestamp;
46
	private LocalDateTime updatedTimestamp;