package com.eactive.eai.rms.data.entity.onl.code;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.hibernate.annotations.Comment;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor

@Embeddable
public class CodeId implements Serializable {

	private static final long serialVersionUID = 1L;

	@Column(unique = true, nullable = false, length = 50)
	@Comment("코드 그룹")
	private String codegroup;

	@Column(unique = true, nullable = false, length = 100)
	@Comment("코드")
	private String code;

}