Done ticket GEPAFINBE-8
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Data;
|
||||
|
||||
@Entity
|
||||
@Table(name = "LOOKUP_DATA")
|
||||
@Data
|
||||
public class LookUpDataEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "TITLE", length = 255, nullable = true)
|
||||
private String title;
|
||||
|
||||
@Column(name = "TYPE", length = 255, nullable = false)
|
||||
private String type;
|
||||
|
||||
@Column(name = "VALUE", columnDefinition = "TEXT", nullable = true)
|
||||
private String value;
|
||||
|
||||
public enum LookUpDataTypeEnum {
|
||||
CHECKLIST("CHECKLIST"),
|
||||
AIMED_TO("AIMED_TO"),
|
||||
EVALUATION_CRITERIA("EVALUATION_CRITERIA");
|
||||
|
||||
private String value;
|
||||
|
||||
LookUpDataTypeEnum(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user