Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class BulletinPostModel {
    private String title;
    private String description;
    private long regionId;
    private String documentIds;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getRegionId() {
        return regionId;
    }

    public void setRegionId(long regionId) {
        this.regionId = regionId;
    }

    public String getDocumentIds() {
        return documentIds;
    }

    public void setDocumentIds(String documentIds) {
        this.documentIds = documentIds;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BulletinPostModel that = (BulletinPostModel) o;
        return regionId == that.regionId && Objects.equals(title, that.title) && Objects.equals(description, that.description) && Objects.equals(documentIds, that.documentIds);
    }

    @Override
    public int hashCode() {
        return Objects.hash(title, description, regionId, documentIds);
    }

    @Override
    public String toString() {
        return "BulletinPostModel{" +
                "title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", regionId=" + regionId +
                ", documentIds='" + documentIds + '\'' +
                '}';
    }
}