/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

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

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

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

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

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}