Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
30158 manish 1
package com.spice.profitmandi.dao.model;
2
 
31540 amit.gupta 3
import java.util.Objects;
30158 manish 4
 
31540 amit.gupta 5
public class PartnerSecondaryModel {
6
	private int warehouseId;
7
	private int fofoId;
8
	private Long orderCount;
9
	private Double orderValue;
30158 manish 10
 
31540 amit.gupta 11
	public PartnerSecondaryModel(int warehouseId, int fofoId, Long orderCount, Double orderValue) {
12
		this.warehouseId = warehouseId;
13
		this.fofoId = fofoId;
14
		this.orderCount = orderCount;
15
		this.orderValue = orderValue;
30158 manish 16
	}
17
 
31540 amit.gupta 18
	public int getWarehouseId() {
19
		return warehouseId;
30158 manish 20
	}
21
 
31540 amit.gupta 22
	public void setWarehouseId(int warehouseId) {
23
		this.warehouseId = warehouseId;
30158 manish 24
	}
25
 
31540 amit.gupta 26
	public int getFofoId() {
27
		return fofoId;
30158 manish 28
	}
29
 
31540 amit.gupta 30
	public void setFofoId(int fofoId) {
31
		this.fofoId = fofoId;
30158 manish 32
	}
33
 
31540 amit.gupta 34
	public Long getOrderCount() {
35
		return orderCount;
30158 manish 36
	}
37
 
31540 amit.gupta 38
	public void setOrderCount(Long orderCount) {
39
		this.orderCount = orderCount;
30158 manish 40
	}
41
 
31540 amit.gupta 42
	public Double getOrderValue() {
43
		return orderValue;
30158 manish 44
	}
45
 
31540 amit.gupta 46
	public void setOrderValue(Double orderValue) {
47
		this.orderValue = orderValue;
30158 manish 48
	}
49
 
31540 amit.gupta 50
	@Override
51
	public boolean equals(Object o) {
52
		if (this == o) return true;
53
		if (o == null || getClass() != o.getClass()) return false;
54
		PartnerSecondaryModel that = (PartnerSecondaryModel) o;
55
		return warehouseId == that.warehouseId && fofoId == that.fofoId && Objects.equals(orderCount, that.orderCount) && Objects.equals(orderValue, that.orderValue);
30158 manish 56
	}
57
 
58
	@Override
59
	public int hashCode() {
31540 amit.gupta 60
		return Objects.hash(warehouseId, fofoId, orderCount, orderValue);
30158 manish 61
	}
62
 
63
	@Override
64
	public String toString() {
31540 amit.gupta 65
		return "PartnerSecondaryModel{" +
66
				"warehouseId=" + warehouseId +
67
				", fofoId=" + fofoId +
68
				", orderCount=" + orderCount +
69
				", orderValue=" + orderValue +
70
				'}';
30158 manish 71
	}
72
}