Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.cs;import com.spice.profitmandi.dao.entity.fofo.ActivityType;import javax.persistence.*;import java.time.LocalDateTime;import java.time.format.DateTimeFormatter;import java.util.Objects;/*** @author Ranu**/@Entity@Table(name = "cs.non_sd_buying")public class NonSdBuying {@Id@Column@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "fofoid")private int fofoId;@Column(name = "authid")private int authId;@Column(name = "createdTimestamp")private LocalDateTime createTimestamp;@Column(name = "brandValue")private int brandValue;@Column(name = "active")private boolean active;@Column(name = "brandId")private int brandId;@Column(name = "reason")private String reason;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getAuthId() {return authId;}public void setAuthId(int authId) {this.authId = authId;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public int getBrandValue() {return brandValue;}public void setBrandValue(int brandValue) {this.brandValue = brandValue;}public boolean isActive() {return active;}public void setActive(boolean active) {this.active = active;}public int getBrandId() {return brandId;}public void setBrandId(int brandId) {this.brandId = brandId;}public String getReason() {return reason;}public void setReason(String reason) {this.reason = reason;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;NonSdBuying that = (NonSdBuying) o;return id == that.id && fofoId == that.fofoId && authId == that.authId && brandValue == that.brandValue && active == that.active && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(brandId, that.brandId) && Objects.equals(reason, that.reason);}@Overridepublic int hashCode() {return Objects.hash(id, fofoId, authId, createTimestamp, brandValue, active, brandId, reason);}@Overridepublic String toString() {return "NonSdBuying{" +"id=" + id +", fofoId=" + fofoId +", authId=" + authId +", createTimestamp=" + createTimestamp +", brandValue=" + brandValue +", active=" + active +", brandId='" + brandId + '\'' +", reason='" + reason + '\'' +'}';}}