package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseMaster;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "AsuhanKeperawatanPeriOperatif_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class AsuhanKeperawatanPeriOperatif extends BaseMaster {

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

	@Column(name = "FlagAsuhan", length = 100)
	private String flagAsuhan;

	@Column(name = "FlagHeader", length = 100)
	private String flagHeader;

	@Column(name = "Keterangan", length = 100)
	private String keterangan;

	@Column(name = "FlagParent", length = 100)
	private String flagParent;

	@Column(name = "IdParent")
	private int idParent;

}
