Rev 28908 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.user;import com.spice.profitmandi.dao.enumuration.dtr.StoreTimeline;import javax.persistence.*;import java.time.LocalDateTime;import java.util.Objects;@Entity@Table(name = "user.store_timeline")public class StoreTimelinetb {@Id@Column(name = "id")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "onboarding_id")private int onboardingId;@Column(name = "loi_id")private Integer loiId;@Column(name = "event_name")@Enumerated(EnumType.STRING)private StoreTimeline eventName;@Column(name = "complete_date")private LocalDateTime completeDate;@Transientprivate int fofoId;public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getId() {return id;}public void setId(int id) {this.id = id;}public int getOnboardingId() {return onboardingId;}public void setOnboardingId(int onboardingId) {this.onboardingId = onboardingId;}public StoreTimeline getEventName() {return eventName;}public void setEventName(StoreTimeline eventName) {this.eventName = eventName;}public LocalDateTime getCompleteDate() {return completeDate;}public void setCompleteDate(LocalDateTime completeDate) {this.completeDate = completeDate;}public Integer getLoiId() {return loiId;}public void setLoiId(Integer loiId) {this.loiId = loiId;}@Overridepublic String toString() {return "StoreTimelinetb{" +"id=" + id +", onboardingId=" + onboardingId +", loiId=" + loiId +", eventName=" + eventName +", completeDate=" + completeDate +", fofoId=" + fofoId +'}';}@Overridepublic boolean equals(Object o) {if (o == null || getClass() != o.getClass()) return false;StoreTimelinetb that = (StoreTimelinetb) o;return id == that.id && onboardingId == that.onboardingId && Objects.equals(loiId, that.loiId) && fofoId == that.fofoId && eventName == that.eventName && Objects.equals(completeDate, that.completeDate);}@Overridepublic int hashCode() {return Objects.hash(id, onboardingId, loiId, eventName, completeDate, fofoId);}}