package com.jasamedika.medifirst2000.entities;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.Size;
import java.io.Serializable;

import static javax.persistence.GenerationType.SEQUENCE;

/**
 * @author salmanoe
 * @version 1.0.0
 * @since 08/11/2023
 */
@Getter
@Setter
@Entity
@Table(name = "migrasiprovinsi_m")
public class MigrasiProvinsi implements Serializable {

	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "sg_migrasiprovinsi_m")
	@SequenceGenerator(name = "sg_migrasiprovinsi_m", sequenceName = "migrasiprovinsi_m_seq", allocationSize = 1)
	private Long id;

	@Column(length = 2)
	@Size(max = 2)
	private String kodeKemendagri;

	private String provinsi;

}
