package com.eactive.eai.rms.data.entity.man.scheduler;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.eactive.eai.data.entity.AbstractEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)

@Entity
@Table(name = "TSEAIRM21")
@org.hibernate.annotations.Table(appliesTo = "TSEAIRM21", comment = "스케쥴러 Job 정보")
public class JobInfo extends AbstractEntity<String> implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "JOBNAME")
	private String id;

	@Column(name = "CRONEXP")
	private String cronExp;

	@Column(name = "INSTANCENAME")
	private String instanceName;

	@Column(name = "JOBCLASSNAME")
	private String jobClassName;

	@Column(name = "USEYN")
	private String useYn;

	@Column(name = "JOBDESC")
	private String jobDesc;

	@Column(name = "CHKSTATUS")
	private String chkStatus;

	@OneToMany(mappedBy = "jobInfo", cascade = CascadeType.ALL, orphanRemoval = true)
	private List<JobData> jobDatas;

}