Rev 23405 | 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 javax.persistence.Column;import javax.persistence.Convert;import javax.persistence.Entity;import javax.persistence.EnumType;import javax.persistence.Enumerated;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.common.enumuration.IndentStatus;import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;@Entity@Table(name = "fofo.indent")public class Indent {@Overridepublic String toString() {return "Indent [id=" + id + ", status=" + status + ", fofoId=" + fofoId + ", closedTimestamp=" + closedTimestamp+ ", createTimestamp=" + createTimestamp + ", allocatedTimestamp=" + allocatedTimestamp + "]";}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public LocalDateTime getAllocatedTimestamp() {return allocatedTimestamp;}public void setAllocatedTimestamp(LocalDateTime allocatedTimestamp) {this.allocatedTimestamp = allocatedTimestamp;}@Id@Column(name = "id", columnDefinition = "int(11)")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + id;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;Indent other = (Indent) obj;if (id != other.id)return false;return true;}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 LocalDateTime getClosedTimestamp() {return closedTimestamp;}public void setClosedTimestamp(LocalDateTime closedTimestamp) {this.closedTimestamp = closedTimestamp;}@Column(name = "status")@Enumerated(EnumType.STRING)private IndentStatus status;@Column(name = "fofo_id", unique = true, updatable = false)private int fofoId;@Convert(converter = LocalDateTimeAttributeConverter.class)@Column(name = "closed_timestamp")private LocalDateTime closedTimestamp;@Convert(converter = LocalDateTimeAttributeConverter.class)@Column(name = "create_timestamp")private LocalDateTime createTimestamp;@Convert(converter = LocalDateTimeAttributeConverter.class)@Column(name = "allocated_timestamp")private LocalDateTime allocatedTimestamp;public IndentStatus getStatus() {return status;}public void setStatus(IndentStatus status) {this.status = status;}}