Subversion Repositories SmartDukaan

Rev

Rev 29969 | Rev 33801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29969 Rev 33791
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.util.Objects;
3
import java.util.Objects;
4
 
4
 
5
public class BrandRegionPOModel {
5
public class BrandAuthUserPOModel {
6
	private int warehouseId;
6
	private int authUserId;
7
	private String brand;
7
	private String brand;
8
	private long todayPOValue;
8
	private long todayPOValue;
9
	private long todayPOBilledValue;
9
	private long todayPOBilledValue;
10
	private long todayBilledValue;
10
	private long todayBilledValue;
11
 
11
 
12
	public BrandRegionPOModel() {
12
	public BrandAuthUserPOModel() {
13
	}
13
	}
14
 
14
 
15
	public BrandRegionPOModel(int warehouseId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
15
	public BrandAuthUserPOModel(int authUserId, String brand, long todayPOValue, long todayPOBilledValue, long todayBilledValue) {
16
		this.warehouseId = warehouseId;
16
		this.authUserId = authUserId;
17
		this.brand = brand;
17
		this.brand = brand;
18
		this.todayPOValue = todayPOValue;
18
		this.todayPOValue = todayPOValue;
19
		this.todayPOBilledValue = todayPOBilledValue;
19
		this.todayPOBilledValue = todayPOBilledValue;
20
		this.todayBilledValue = todayBilledValue;
20
		this.todayBilledValue = todayBilledValue;
21
	}
21
	}
22
 
22
 
23
	@Override
23
	@Override
24
	public boolean equals(Object o) {
24
	public boolean equals(Object o) {
25
		if (this == o) return true;
25
		if (this == o) return true;
26
		if (o == null || getClass() != o.getClass()) return false;
26
		if (o == null || getClass() != o.getClass()) return false;
27
		BrandRegionPOModel that = (BrandRegionPOModel) o;
27
		BrandAuthUserPOModel that = (BrandAuthUserPOModel) o;
28
		return warehouseId == that.warehouseId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
28
		return authUserId == that.authUserId && todayPOValue == that.todayPOValue && todayPOBilledValue == that.todayPOBilledValue && todayBilledValue == that.todayBilledValue && Objects.equals(brand, that.brand);
29
	}
29
	}
30
 
30
 
31
	@Override
31
	@Override
32
	public int hashCode() {
32
	public int hashCode() {
33
		return Objects.hash(warehouseId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
33
		return Objects.hash(authUserId, brand, todayPOValue, todayPOBilledValue, todayBilledValue);
34
	}
34
	}
35
 
35
 
36
	public int getWarehouseId() {
36
	public int getAuthUserId() {
37
		return warehouseId;
37
		return authUserId;
38
	}
38
	}
39
 
39
 
40
	public void setWarehouseId(int warehouseId) {
40
	public void setAuthUserId(int authUserId) {
41
		this.warehouseId = warehouseId;
41
		this.authUserId = authUserId;
42
	}
42
	}
43
 
43
 
44
	public String getBrand() {
44
	public String getBrand() {
45
		return brand;
45
		return brand;
46
	}
46
	}