package com.jasamedika.medifirst2000.entities;

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

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "ListMaster_s")
public class ListMaster extends BaseMaster {

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

	@Column(name = "NamaEntity", nullable = false, length = 100)
	@Caption(value = "NamaEntity")
	private String namaEntity;
	
	public String getNamaTable() {
		return namaTable;
	}

	public void setNamaTable(String namaTable) {
		this.namaTable = namaTable;
	}

	public String getNamaEntity() {
		return namaEntity;
	}

	public void setNamaEntity(String namaEntity) {
		this.namaEntity = namaEntity;
	}

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

	public Integer getId() {
		return id;
	}

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