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

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

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

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

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

@Entity
@Table(name = "TSEAIRM22")
public class JobData extends AbstractEntity<JobDataId> implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private JobDataId id;

	@Column(name = "DATAVALUE")
	private String dataValue;

	@ManyToOne
	@JoinColumn(name = "JOBNAME", insertable = false, updatable = false)
	@ToString.Exclude
	private JobInfo jobInfo;

}