Subversion Repositories SmartDukaan

Rev

Rev 35549 | Details | Compare with Previous | 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 description;
7
    private long regionId;
8
    private String documentIds;
9
 
10
    public String getDescription() {
11
        return description;
12
    }
13
 
14
    public void setDescription(String description) {
15
        this.description = description;
16
    }
17
 
18
    public long getRegionId() {
19
        return regionId;
20
    }
21
 
22
    public void setRegionId(long regionId) {
23
        this.regionId = regionId;
24
    }
25
 
26
    public String getDocumentIds() {
27
        return documentIds;
28
    }
29
 
30
    public void setDocumentIds(String documentIds) {
31
        this.documentIds = documentIds;
32
    }
33
 
34
    @Override
35
    public boolean equals(Object o) {
36
        if (this == o) return true;
37
        if (o == null || getClass() != o.getClass()) return false;
38
        BulletinPostModel that = (BulletinPostModel) o;
35583 ranu 39
        return regionId == that.regionId && Objects.equals(description, that.description) && Objects.equals(documentIds, that.documentIds);
35549 ranu 40
    }
41
 
42
    @Override
43
    public int hashCode() {
35583 ranu 44
        return Objects.hash(description, regionId, documentIds);
35549 ranu 45
    }
46
 
47
    @Override
48
    public String toString() {
49
        return "BulletinPostModel{" +
50
                ", description='" + description + '\'' +
51
                ", regionId=" + regionId +
52
                ", documentIds='" + documentIds + '\'' +
53
                '}';
54
    }
55
}