Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28004 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
29964 amit.gupta 3
import java.util.Objects;
4
 
5
public class BrandRegionPOModel {
28020 tejbeer 6
	private int warehouseId;
28004 tejbeer 7
	private String brand;
29964 amit.gupta 8
	private long todayPOValue;
9
	private long todayPOBilledValue;
10
	private long todayBilledValue;
28004 tejbeer 11
 
29969 amit.gupta 12
	public BrandRegionPOModel() {
13
	}
14
 
29964 amit.gupta 15
	public BrandRegionPOModel(int warehouseId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
28020 tejbeer 16
		this.warehouseId = warehouseId;
28004 tejbeer 17
		this.brand = brand;
29964 amit.gupta 18
		this.todayPOValue = todayPOValue;
19
		this.todayPOBilledValue = todayPOBilledValue;
20
		this.todayBilledValue = todayBilledValue;
28004 tejbeer 21
	}
22
 
29964 amit.gupta 23
	@Override
24
	public boolean equals(Object o) {
25
		if (this == o) return true;
26
		if (o == null || getClass() != o.getClass()) return false;
27
		BrandRegionPOModel that = (BrandRegionPOModel) o;
28
		return warehouseId == that.warehouseId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
28053 tejbeer 29
	}
30
 
29964 amit.gupta 31
	@Override
32
	public int hashCode() {
33
		return Objects.hash(warehouseId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
28053 tejbeer 34
	}
35
 
29964 amit.gupta 36
	public int getWarehouseId() {
37
		return warehouseId;
28004 tejbeer 38
	}
39
 
29964 amit.gupta 40
	public void setWarehouseId(int warehouseId) {
41
		this.warehouseId = warehouseId;
28004 tejbeer 42
	}
43
 
44
	public String getBrand() {
45
		return brand;
46
	}
47
 
48
	public void setBrand(String brand) {
49
		this.brand = brand;
50
	}
51
 
29964 amit.gupta 52
	public long getTodayPOValue() {
53
		return todayPOValue;
28004 tejbeer 54
	}
55
 
29964 amit.gupta 56
	public void setTodayPOValue(long todayPOValue) {
57
		this.todayPOValue = todayPOValue;
28004 tejbeer 58
	}
59
 
29964 amit.gupta 60
	public long getTodayPOBilledValue() {
61
		return todayPOBilledValue;
28004 tejbeer 62
	}
63
 
29964 amit.gupta 64
	public void setTodayPOBilledValue(long todayPOBilledValue) {
65
		this.todayPOBilledValue = todayPOBilledValue;
28004 tejbeer 66
	}
67
 
29964 amit.gupta 68
	public long getTodayBilledValue() {
69
		return todayBilledValue;
28004 tejbeer 70
	}
71
 
29964 amit.gupta 72
	public void setTodayBilledValue(long todayBilledValue) {
73
		this.todayBilledValue = todayBilledValue;
28004 tejbeer 74
	}
75
}