package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import java.io.Serializable;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 *
 * @author Adik
 */
@Getter
@Setter
@Entity
@Table(name = "GroupPasien")
public class GroupPasien extends BaseMaster implements Serializable {

	@Column(name = "NAMA", length = 50)
	private String nama;

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

}