add xml type to dmp blueprint entity

This commit is contained in:
amentis 2024-01-25 15:50:52 +02:00
parent f8fa4e519b
commit b6a85e151d
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,9 @@ import eu.eudat.commons.enums.IsActive;
import eu.eudat.data.converters.enums.DmpBlueprintStatusConverter;
import eu.eudat.data.converters.enums.IsActiveConverter;
import eu.eudat.data.tenant.TenantScopedBaseEntity;
import eu.eudat.data.types.SQLXMLType;
import jakarta.persistence.*;
import org.hibernate.annotations.Type;
import java.time.Instant;
import java.util.UUID;
@ -23,7 +25,8 @@ public class DmpBlueprintEntity extends TenantScopedBaseEntity {
public static final String _label = "label";
public static final int _labelLength = 250;
@Column(name = "definition", nullable = true)
@Type(value = SQLXMLType.class)
@Column(name = "definition", nullable = true, columnDefinition = "xml")
private String definition;
public static final String _definition = "definition";