package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseActive;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

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

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * @author Salman
 * @version 1.0.0
 * @since 2 Nov 2023
 */
@Getter
@Setter
@Entity
@Table(name = "rm_kategoriberkas_m")
public class KategoriBerkas extends BaseActive implements Serializable {

	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "sg_rm_kategoriberkas_m")
	@SequenceGenerator(name = "sg_rm_kategoriberkas_m", sequenceName = "rm_kategoriberkas_m_seq", allocationSize = 1)
	@Column(name = "id")
	protected Long id;

	@Column(nullable = false)
	@NotBlank
	@Caption("Kategori Berkas")
	private String kategoriBerkas;

}
