Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
34495 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class InStockItemDetailModel {
6
    int itemId;
7
    int catalogId;
8
    int availability;
9
    int fofoId;
10
    String itemDescription;
11
 
12
    public int getItemId() {
13
        return itemId;
14
    }
15
 
16
    public void setItemId(int itemId) {
17
        this.itemId = itemId;
18
    }
19
 
20
    public int getCatalogId() {
21
        return catalogId;
22
    }
23
 
24
    public void setCatalogId(int catalogId) {
25
        this.catalogId = catalogId;
26
    }
27
 
28
    public int getAvailability() {
29
        return availability;
30
    }
31
 
32
    public void setAvailability(int availability) {
33
        this.availability = availability;
34
    }
35
 
36
    public int getFofoId() {
37
        return fofoId;
38
    }
39
 
40
    public void setFofoId(int fofoId) {
41
        this.fofoId = fofoId;
42
    }
43
 
44
    public String getItemDescription() {
45
        return itemDescription;
46
    }
47
 
48
    public void setItemDescription(String itemDescription) {
49
        this.itemDescription = itemDescription;
50
    }
51
 
52
    @Override
53
    public String toString() {
54
        return "InStockItemDetailModel{" +
55
                "itemId=" + itemId +
56
                ", catalogId=" + catalogId +
57
                ", availability=" + availability +
58
                ", fofoId=" + fofoId +
59
                ", itemDescription='" + itemDescription + '\'' +
60
                '}';
61
    }
62
 
63
    @Override
64
    public boolean equals(Object o) {
65
        if (this == o) return true;
66
        if (o == null || getClass() != o.getClass()) return false;
67
        InStockItemDetailModel that = (InStockItemDetailModel) o;
68
        return itemId == that.itemId && catalogId == that.catalogId && availability == that.availability && fofoId == that.fofoId && Objects.equals(itemDescription, that.itemDescription);
69
    }
70
 
71
    @Override
72
    public int hashCode() {
73
        return Objects.hash(itemId, catalogId, availability, fofoId, itemDescription);
74
    }
75
}