Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import com.spice.profitmandi.common.enumuration.ScheduleStatus;import javax.persistence.*;import java.time.LocalDateTime;@Entity@Table(name = "dtr.notification_schedule")public class NotificationSchedule {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id", unique = true, updatable = false)private int id;@Column(name = "campaign_id")private int campaignId;@Column(name = "scheduled_timestamp")private LocalDateTime scheduledTimestamp;@Enumerated(EnumType.STRING)@Column(name = "status")private ScheduleStatus status;@Column(name = "dispatched_timestamp")private LocalDateTime dispatchedTimestamp;@Column(name = "created_timestamp", updatable = false)private LocalDateTime createdTimestamp = LocalDateTime.now();public int getId() {return id;}public void setId(int id) {this.id = id;}public int getCampaignId() {return campaignId;}public void setCampaignId(int campaignId) {this.campaignId = campaignId;}public LocalDateTime getScheduledTimestamp() {return scheduledTimestamp;}public void setScheduledTimestamp(LocalDateTime scheduledTimestamp) {this.scheduledTimestamp = scheduledTimestamp;}public ScheduleStatus getStatus() {return status;}public void setStatus(ScheduleStatus status) {this.status = status;}public LocalDateTime getDispatchedTimestamp() {return dispatchedTimestamp;}public void setDispatchedTimestamp(LocalDateTime dispatchedTimestamp) {this.dispatchedTimestamp = dispatchedTimestamp;}public LocalDateTime getCreatedTimestamp() {return createdTimestamp;}public void setCreatedTimestamp(LocalDateTime createdTimestamp) {this.createdTimestamp = createdTimestamp;}@Overridepublic String toString() {return "NotificationSchedule [id=" + id + ", campaignId=" + campaignId + ", scheduledTimestamp="+ scheduledTimestamp + ", status=" + status + ", dispatchedTimestamp=" + dispatchedTimestamp+ ", createdTimestamp=" + createdTimestamp + "]";}}