package com.jasamedika.medifirst2000.entities;

import javax.persistence.*;

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

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "DeathOnArrival_M")
public class DeathOnArrival extends BaseMaster {

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

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

	@Column(name = "Nilai", nullable = false)
	@Caption(value = "Nilai")
	private Integer nilai;

}
