package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "RM_AktivitasKemandirian_M")
public class AktivitasKemandirian extends BaseKeyValueMaster {

	@NotNull(message = "ktegori tidak boleh kosong")
	@Column(name = "kategori", nullable = false, length = 100)
	@Caption(value = "kategori")
	private String kategori;

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

}
