Rev 31627 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import java.time.LocalDateTime;import java.util.Objects;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name = "fofo.catalog_favourite")public class CatalogFavourite {@Id@Column(name = "id")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "catalog_id")private int catalogId;@Column(name = "fofo_id")private int fofoId;@Column(name = "created_timestamp")private LocalDateTime createdTimestamp;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getCatalogId() {return catalogId;}public void setCatalogId(int catatlogId) {this.catalogId = catatlogId;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public LocalDateTime getCreatedTimestamp() {return createdTimestamp;}public void setCreatedTimestamp(LocalDateTime createdTimestamp) {this.createdTimestamp = createdTimestamp;}@Overridepublic int hashCode() {return Objects.hash(catalogId, createdTimestamp, fofoId, id);}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CatalogFavourite other = (CatalogFavourite) obj;return catalogId == other.catalogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId&& id == other.id;}@Overridepublic String toString() {return "CatalogFavourite [id=" + id + ", catatlogId=" + catalogId + ", fofoId=" + fofoId+ ", createdTimestamp=" + createdTimestamp + "]";}}