package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author salmanoe
 * @version 1.0.0
 * @since 07/03/2024
 */
@Getter
@Setter
@Entity
@Table(name = "capital_component_m", schema = "mkko")
public class CapitalComponent extends BaseTransaction implements Serializable {

	@Column(name = "component_name", length = 150, nullable = false)
	@NotBlank(message = "Component name tidak boleh kosong")
	@Size(max = 150, message = "Component name maksimal {max} karakter")
	@Caption("Component Name")
	private String componentName;

}
