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

	@Column(name = "KdJenisMedia", length = 200)
	@Caption(value = "Kd Jenis Media")
	private String kdJenisMedia;

	@Column(name = "NamaJenisMedia", length = 200)
	@Caption(value = "Nama Jenis Media")
	private String namaJenisMedia;

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

}