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;}@Overridepublic String toString() {return "WebOfferModel{" +"id=" + id +", title='" + title + '\'' +", detailedText='" + detailedText + '\'' +", catalogId=" + catalogId +'}';}@Overridepublic 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);}@Overridepublic int hashCode() {return Objects.hash(id, title, detailedText, catalogId);}}