Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import java.util.Objects;

public class WebOfferModel {
    int id;
    String title;
    String detailedText;
    int catalogId;


    public String getTitle() {
        return title;
    }

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

    public String getDetailedText() {
        return detailedText;
    }

    public void setDetailedText(String detailedText) {
        this.detailedText = detailedText;
    }

    public int getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(int catalogId) {
        this.catalogId = catalogId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "WebOfferModel{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", detailedText='" + detailedText + '\'' +
                ", catalogId=" + catalogId +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WebOfferModel that = (WebOfferModel) o;
        return id == that.id && catalogId == that.catalogId && Objects.equals(title, that.title) && Objects.equals(detailedText, that.detailedText);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, title, detailedText, catalogId);
    }
}