Subversion Repositories SmartDukaan

Rev

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

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