Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import com.spice.profitmandi.dao.enumuration.fofo.StoreStatus;import com.spice.profitmandi.dao.enumuration.fofo.StoreStatusAction;import com.spice.profitmandi.dao.enumuration.fofo.StoreStatusSource;import javax.persistence.*;import java.time.LocalDateTime;@Entity@Table(name = "fofo.store_status_log")public class StoreStatusLog {@Id@Column(name = "id")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "fofo_id")private int fofoId;@Enumerated(EnumType.STRING)@Column(name = "from_status")private StoreStatus fromStatus;@Enumerated(EnumType.STRING)@Column(name = "to_status")private StoreStatus toStatus;@Enumerated(EnumType.STRING)@Column(name = "action")private StoreStatusAction action;@Column(name = "reason")private String reason;@Enumerated(EnumType.STRING)@Column(name = "source")private StoreStatusSource source;@Column(name = "changed_by")private String changedBy;@Column(name = "allowed_as")private String allowedAs;@Column(name = "active_until")private LocalDateTime activeUntil;@Column(name = "store_closure_id")private Integer storeClosureId;@Column(name = "create_timestamp")private LocalDateTime createTimestamp;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 StoreStatus getFromStatus() {return fromStatus;}public void setFromStatus(StoreStatus fromStatus) {this.fromStatus = fromStatus;}public StoreStatus getToStatus() {return toStatus;}public void setToStatus(StoreStatus toStatus) {this.toStatus = toStatus;}public StoreStatusAction getAction() {return action;}public void setAction(StoreStatusAction action) {this.action = action;}public String getReason() {return reason;}public void setReason(String reason) {this.reason = reason;}public StoreStatusSource getSource() {return source;}public void setSource(StoreStatusSource source) {this.source = source;}public String getChangedBy() {return changedBy;}public void setChangedBy(String changedBy) {this.changedBy = changedBy;}public String getAllowedAs() {return allowedAs;}public void setAllowedAs(String allowedAs) {this.allowedAs = allowedAs;}public LocalDateTime getActiveUntil() {return activeUntil;}public void setActiveUntil(LocalDateTime activeUntil) {this.activeUntil = activeUntil;}public Integer getStoreClosureId() {return storeClosureId;}public void setStoreClosureId(Integer storeClosureId) {this.storeClosureId = storeClosureId;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}@Overridepublic String toString() {return "StoreStatusLog [id=" + id + ", fofoId=" + fofoId + ", fromStatus=" + fromStatus + ", toStatus="+ toStatus + ", action=" + action + ", reason=" + reason + ", source=" + source + ", changedBy="+ changedBy + ", allowedAs=" + allowedAs + ", activeUntil=" + activeUntil + ", storeClosureId="+ storeClosureId + ", createTimestamp=" + createTimestamp + "]";}}