Subversion Repositories SmartDukaan

Rev

Rev 32903 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
32163 tejbeer 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDate;
4
 
5
import com.spice.profitmandi.dao.enumuration.inventory.VendorCatalogPricingStatus;
6
 
7
public class VendorPriceCircularModel {
8
 
9
    private int id;;
10
    private int vendorId;
11
    private int catalogId;
12
    private float transferPrice;
13
    private float dealerPrice;
14
    private float mop;
15
    private LocalDate effectedOn;
16
    private String status;
17
 
18
 
19
    public VendorPriceCircularModel(int id, int vendorId, int catalogId, float transferPrice, float dealerPrice, float mop, LocalDate effectedOn, String status) {
20
        super();
21
        this.id = id;
22
        this.vendorId = vendorId;
23
        this.catalogId = catalogId;
24
        this.transferPrice = transferPrice;
25
        this.dealerPrice = dealerPrice;
26
        this.mop = mop;
27
        this.effectedOn = effectedOn;
28
        this.status = status;
29
    }
30
 
31
 
32
    public int getId() {
33
        return id;
34
    }
35
 
36
 
37
    public void setId(int id) {
38
        this.id = id;
39
    }
40
 
41
 
42
    public int getVendorId() {
43
        return vendorId;
44
    }
45
 
46
 
47
    public void setVendorId(int vendorId) {
48
        this.vendorId = vendorId;
49
    }
50
 
51
 
52
    public int getCatalogId() {
53
        return catalogId;
54
    }
55
 
56
 
57
    public void setCatalogId(int catalogId) {
58
        this.catalogId = catalogId;
59
    }
60
 
61
 
62
    public float getTransferPrice() {
63
        return transferPrice;
64
    }
65
 
66
 
67
    public void setTransferPrice(float transferPrice) {
68
        this.transferPrice = transferPrice;
69
    }
70
 
71
 
72
    public float getDealerPrice() {
73
        return dealerPrice;
74
    }
75
 
76
 
77
    public void setDealerPrice(float dealerPrice) {
78
        this.dealerPrice = dealerPrice;
79
    }
80
 
81
 
82
    public float getMop() {
83
        return mop;
84
    }
85
 
86
 
87
    public void setMop(float mop) {
88
        this.mop = mop;
89
    }
90
 
91
 
92
    public LocalDate getEffectedOn() {
93
        return effectedOn;
94
    }
95
 
96
 
97
    public void setEffectedOn(LocalDate effectedOn) {
98
        this.effectedOn = effectedOn;
99
    }
100
 
101
 
102
    public String getStatus() {
103
        return status;
104
    }
105
 
106
 
107
    public void setStatus(String status) {
108
        this.status = status;
109
    }
110
 
111
 
112
    @Override
113
    public int hashCode() {
114
        final int prime = 31;
115
        int result = 1;
116
        result = prime * result + catalogId;
117
        result = prime * result + Float.floatToIntBits(dealerPrice);
118
        result = prime * result + ((effectedOn == null) ? 0 : effectedOn.hashCode());
119
        result = prime * result + id;
120
        result = prime * result + Float.floatToIntBits(mop);
121
        result = prime * result + ((status == null) ? 0 : status.hashCode());
122
        result = prime * result + Float.floatToIntBits(transferPrice);
123
        result = prime * result + vendorId;
124
        return result;
125
    }
126
 
127
    @Override
128
    public boolean equals(Object obj) {
129
        if (this == obj) return true;
130
        if (obj == null) return false;
131
        if (getClass() != obj.getClass()) return false;
132
        VendorPriceCircularModel other = (VendorPriceCircularModel) obj;
133
        if (catalogId != other.catalogId) return false;
134
        if (Float.floatToIntBits(dealerPrice) != Float.floatToIntBits(other.dealerPrice)) return false;
135
        if (effectedOn == null) {
136
            if (other.effectedOn != null) return false;
137
        } else if (!effectedOn.equals(other.effectedOn)) return false;
138
        if (id != other.id) return false;
139
        if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop)) return false;
140
        if (status != other.status) return false;
141
        if (Float.floatToIntBits(transferPrice) != Float.floatToIntBits(other.transferPrice)) return false;
142
        if (vendorId != other.vendorId) return false;
143
        return true;
144
    }
145
 
146
 
147
}