Subversion Repositories SmartDukaan

Rev

Rev 35549 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35549 Rev 35583
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.util.Objects;
3
import java.util.Objects;
4
 
4
 
5
public class BulletinPostModel {
5
public class BulletinPostModel {
6
    private String title;
-
 
7
    private String description;
6
    private String description;
8
    private long regionId;
7
    private long regionId;
9
    private String documentIds;
8
    private String documentIds;
10
 
9
 
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() {
10
    public String getDescription() {
20
        return description;
11
        return description;
21
    }
12
    }
22
 
13
 
23
    public void setDescription(String description) {
14
    public void setDescription(String description) {
Line 43... Line 34...
43
    @Override
34
    @Override
44
    public boolean equals(Object o) {
35
    public boolean equals(Object o) {
45
        if (this == o) return true;
36
        if (this == o) return true;
46
        if (o == null || getClass() != o.getClass()) return false;
37
        if (o == null || getClass() != o.getClass()) return false;
47
        BulletinPostModel that = (BulletinPostModel) o;
38
        BulletinPostModel that = (BulletinPostModel) o;
48
        return regionId == that.regionId && Objects.equals(title, that.title) && Objects.equals(description, that.description) && Objects.equals(documentIds, that.documentIds);
39
        return regionId == that.regionId && Objects.equals(description, that.description) && Objects.equals(documentIds, that.documentIds);
49
    }
40
    }
50
 
41
 
51
    @Override
42
    @Override
52
    public int hashCode() {
43
    public int hashCode() {
53
        return Objects.hash(title, description, regionId, documentIds);
44
        return Objects.hash(description, regionId, documentIds);
54
    }
45
    }
55
 
46
 
56
    @Override
47
    @Override
57
    public String toString() {
48
    public String toString() {
58
        return "BulletinPostModel{" +
49
        return "BulletinPostModel{" +
59
                "title='" + title + '\'' +
-
 
60
                ", description='" + description + '\'' +
50
                ", description='" + description + '\'' +
61
                ", regionId=" + regionId +
51
                ", regionId=" + regionId +
62
                ", documentIds='" + documentIds + '\'' +
52
                ", documentIds='" + documentIds + '\'' +
63
                '}';
53
                '}';
64
    }
54
    }