package cokr.xit.ens.modules.common.ctgy.nicedici.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.annotations.CreationTimestamp;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Getter @ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ens_nice_ci_mng", schema = "", catalog = "")
public class NiceCiMng {

	@Id
//	@GeneratedValue(strategy=GenerationType.AUTO)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "NiceCiMng_Generator")
	@TableGenerator(table = "ens_seq_generator", name = "NiceCiMng_Generator"
					,pkColumnName = "seq_name", pkColumnValue = "NiceCiMng_id"
					,initialValue = 0, allocationSize = 200)
	private Long niceCiMngId;

	
	@Column(name = "ci", nullable = true)
	private String ci;
	
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "jid_mng_id")
	private NiceJidMng niceJidMng;
	
	
	@Column(name = "regist_dt", nullable = true)
	@CreationTimestamp
	private LocalDateTime registDt;    
	
	

}
