Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35501 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.util.Objects;
4
 
5
public class WebOfferModel {
6
    int id;
7
    String title;
8
    String detailedText;
9
    int catalogId;
10
 
11
 
12
    public String getTitle() {
13
        return title;
14
    }
15
 
16
    public void setTitle(String title) {
17
        this.title = title;
18
    }
19
 
20
    public String getDetailedText() {
21
        return detailedText;
22
    }
23
 
24
    public void setDetailedText(String detailedText) {
25
        this.detailedText = detailedText;
26
    }
27
 
28
    public int getCatalogId() {
29
        return catalogId;
30
    }
31
 
32
    public void setCatalogId(int catalogId) {
33
        this.catalogId = catalogId;
34
    }
35
 
36
    public int getId() {
37
        return id;
38
    }
39
 
40
    public void setId(int id) {
41
        this.id = id;
42
    }
43
 
44
    @Override
45
    public String toString() {
46
        return "WebOfferModel{" +
47
                "id=" + id +
48
                ", title='" + title + '\'' +
49
                ", detailedText='" + detailedText + '\'' +
50
                ", catalogId=" + catalogId +
51
                '}';
52
    }
53
 
54
    @Override
55
    public boolean equals(Object o) {
56
        if (this == o) return true;
57
        if (o == null || getClass() != o.getClass()) return false;
58
        WebOfferModel that = (WebOfferModel) o;
59
        return id == that.id && catalogId == that.catalogId && Objects.equals(title, that.title) && Objects.equals(detailedText, that.detailedText);
60
    }
61
 
62
    @Override
63
    public int hashCode() {
64
        return Objects.hash(id, title, detailedText, catalogId);
65
    }
66
}