Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import java.io.Serializable;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.fasterxml.jackson.annotation.JsonProperty;/*** This class basically contains api details** @author ashikali**/@Entity@Table(name="dtr.web_offer", schema = "dtr")public class WebOffer implements Serializable{private static final long serialVersionUID = 1L;@Id@Column(name="id", columnDefinition = "int(10) unsigned")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Columnprivate String title;@Columnprivate String smallText;@Columnprivate String detailedText;@Columnprivate int rank;@Columnprivate String smallBannerUrl;@Columnprivate String largeBannerUrl;@Columnprivate boolean active=true;@Columnprivate LocalDateTime startDate;@Columnprivate LocalDateTime endDate;@Columnprivate LocalDateTime createdDate;@Overridepublic String toString() {return "WebOffer [id=" + id + ", title=" + title + ", smallText=" + smallText + ", detailedText=" + detailedText+ ", rank=" + rank + ", smallBannerUrl=" + smallBannerUrl + ", largeBannerUrl=" + largeBannerUrl+ ", active=" + active + ", startDate=" + startDate + ", endDate=" + endDate + ", createdDate="+ createdDate + "]";}public int getId() {return id;}public void setId(int id) {this.id = id;}public String getTitle() {return title;}public void setTitle(String title) {this.title = title;}public String getSmallText() {return smallText;}public void setSmallText(String smallText) {this.smallText = smallText;}public String getDetailedText() {return detailedText;}public void setDetailedText(String detailedText) {this.detailedText = detailedText;}public int getRank() {return rank;}public void setRank(int rank) {this.rank = rank;}public String getSmallBannerUrl() {return smallBannerUrl;}public void setSmallBannerUrl(String smallBannerUrl) {this.smallBannerUrl = smallBannerUrl;}public String getLargeBannerUrl() {return largeBannerUrl;}public void setLargeBannerUrl(String largeBannerUrl) {this.largeBannerUrl = largeBannerUrl;}public boolean isActive() {return active;}public void setActive(boolean active) {this.active = active;}public LocalDateTime getStartDate() {return startDate;}public void setStartDate(LocalDateTime startDate) {this.startDate = startDate;}public LocalDateTime getEndDate() {return endDate;}public void setEndDate(LocalDateTime endDate) {this.endDate = endDate;}public LocalDateTime getCreatedDate() {return createdDate;}public void setCreatedDate(LocalDateTime createdDate) {this.createdDate = createdDate;}public static long getSerialversionuid() {return serialVersionUID;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + (active ? 1231 : 1237);result = prime * result + ((createdDate == null) ? 0 : createdDate.hashCode());result = prime * result + ((detailedText == null) ? 0 : detailedText.hashCode());result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());result = prime * result + id;result = prime * result + ((largeBannerUrl == null) ? 0 : largeBannerUrl.hashCode());result = prime * result + rank;result = prime * result + ((smallBannerUrl == null) ? 0 : smallBannerUrl.hashCode());result = prime * result + ((smallText == null) ? 0 : smallText.hashCode());result = prime * result + ((startDate == null) ? 0 : startDate.hashCode());result = prime * result + ((title == null) ? 0 : title.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;WebOffer other = (WebOffer) obj;if (active != other.active)return false;if (createdDate == null) {if (other.createdDate != null)return false;} else if (!createdDate.equals(other.createdDate))return false;if (detailedText == null) {if (other.detailedText != null)return false;} else if (!detailedText.equals(other.detailedText))return false;if (endDate == null) {if (other.endDate != null)return false;} else if (!endDate.equals(other.endDate))return false;if (id != other.id)return false;if (largeBannerUrl == null) {if (other.largeBannerUrl != null)return false;} else if (!largeBannerUrl.equals(other.largeBannerUrl))return false;if (rank != other.rank)return false;if (smallBannerUrl == null) {if (other.smallBannerUrl != null)return false;} else if (!smallBannerUrl.equals(other.smallBannerUrl))return false;if (smallText == null) {if (other.smallText != null)return false;} else if (!smallText.equals(other.smallText))return false;if (startDate == null) {if (other.startDate != null)return false;} else if (!startDate.equals(other.startDate))return false;if (title == null) {if (other.title != null)return false;} else if (!title.equals(other.title))return false;return true;}}