package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "ListMaster_s")
public class ListMaster extends BaseMaster {

	@Column(name = "NamaTabel", nullable = false, length = 100)
	@Caption(value = "NamaTabel")
	private String namaTable;

	@Column(name = "NamaEntity", nullable = false, length = 100)
	@Caption(value = "NamaEntity")
	private String namaEntity;

	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "public.ListMaster_s")
	@SequenceGenerator(name = "public.ListMaster_s", sequenceName = "public.ListMaster_s", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

}
