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 = "Sdm_KomponenIKI_M")
public class KomponenIKI extends BaseMaster {

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

	@Caption(value = "Persentase")
	@Column(name = "persentase")
	private Double persentase;

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

}
