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

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Comment;

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

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

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

@Entity
@Table(name = "tseairm32")
@org.hibernate.annotations.Table(appliesTo = "tseairm32", comment = "업무코드 전환")
public class BizKeyTran extends AbstractEntity<String> implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique = true, nullable = false, length = 4)
	@Comment("EAI 업무구분코드")
	@Convert(converter = StringTrimConverter.class)
	private String eaibzwkdstcd;

	@Column(length = 4)
	@Comment("어플리케이션 코드")
	@Convert(converter = StringTrimConverter.class)
	private String apcode;

	@Override
	public @NonNull String getId() {
		return eaibzwkdstcd;
	}
}
