Commit 3a37b2e1 authored by Roberto Loayza's avatar Roberto Loayza

Mantenimiento SchedulerTask

parent 0f3e3745
...@@ -23,7 +23,9 @@ public class SchedulerTaskBean implements Serializable { ...@@ -23,7 +23,9 @@ public class SchedulerTaskBean implements Serializable {
@Expose @Expose
private String stringParameters; private String stringParameters;
@Expose @Expose
private String calendarID; private String calendar;
@Expose @Expose
private String calendarName; private String calendarName;
@Expose
private int idEtl;
} }
...@@ -27,8 +27,8 @@ public abstract class CalendarException implements Serializable { ...@@ -27,8 +27,8 @@ public abstract class CalendarException implements Serializable {
@Id @Id
@Column(name = "CALE_EXC_ID") @Column(name = "CALE_EXC_ID")
@SequenceGenerator(name = "AVB_CALENDAR_EXCEPTION_GENERATOR", sequenceName = "AVB_CALENDAR_EXCEPTION_SEQ", initialValue = 1, allocationSize = 1) //@SequenceGenerator(name = "AVB_CALENDAR_EXCEPTION_GENERATOR", sequenceName = "AVB_CALENDAR_EXCEPTION_SEQ", initialValue = 1, allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_CALENDAR_EXCEPTION_GENERATOR") //@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_CALENDAR_EXCEPTION_GENERATOR")
private BigInteger id; private BigInteger id;
@Version @Version
......
...@@ -5,8 +5,6 @@ import lombok.EqualsAndHashCode; ...@@ -5,8 +5,6 @@ import lombok.EqualsAndHashCode;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.envers.Audited; import org.hibernate.envers.Audited;
import javax.persistence.*; import javax.persistence.*;
...@@ -16,7 +14,7 @@ import java.math.BigInteger; ...@@ -16,7 +14,7 @@ import java.math.BigInteger;
@Audited @Audited
@Entity @Entity
@Table(name = "AVB_SCHEDULER_TASK") @Table(name = "AVB_SCHEDULER_TASK")
@NamedQuery(name = "SchedulerTask.findByPK", query = "Select u from SchedulerTask u where u.id = ?1") @NamedQuery(name = "SchedulerTasks.findByPK", query = "Select u from SchedulerTask u where u.id = ?1")
@Getter @Getter
@Setter @Setter
@EqualsAndHashCode @EqualsAndHashCode
...@@ -25,8 +23,8 @@ public class SchedulerTask implements Serializable { ...@@ -25,8 +23,8 @@ public class SchedulerTask implements Serializable {
@Id @Id
@Column(name = "SHTA_ID") @Column(name = "SHTA_ID")
@SequenceGenerator(name = "AVB_SCHEDULER_TASK_GENERATOR", sequenceName = "AVB_SCHEDULER_TASK_SEQ", initialValue = 1, allocationSize = 1) //@SequenceGenerator(name = "AVB_SCHEDULER_TASK_GENERATOR", sequenceName = "AVB_SCHEDULER_TASK_SEQ", initialValue = 1, allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_SCHEDULER_TASK_GENERATOR") //@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "AVB_SCHEDULER_TASK_GENERATOR")
private BigInteger id; private BigInteger id;
@Version @Version
...@@ -47,12 +45,15 @@ public class SchedulerTask implements Serializable { ...@@ -47,12 +45,15 @@ public class SchedulerTask implements Serializable {
@Column(name = "SHTA_PARAM") @Column(name = "SHTA_PARAM")
private String stringParameters; private String stringParameters;
@Column(name = "CALE_ID")
private String calendarID;
@ManyToOne(optional = false) @ManyToOne(optional = false)
@NotFound(action = NotFoundAction.IGNORE) @JoinColumn(name = "CALE_ID", referencedColumnName = "CALE_ID", nullable = false)
@JoinColumn(name = "cale_id", referencedColumnName = "cale_id", nullable = false)
private Calendar calendar; private Calendar calendar;
/*@ManyToOne(optional = false)
@JoinColumn(name = "ETL_ID", referencedColumnName = "ETL_ID", nullable = false)
private ProcessETL processETL;*/
@Column(name = "ETL_ID")
private int processETL;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment