From b6a85e151da176cbd94ac71a1cb90da2ad78f707 Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 25 Jan 2024 15:50:52 +0200 Subject: [PATCH] add xml type to dmp blueprint entity --- .../core/src/main/java/eu/eudat/data/DmpBlueprintEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dmp-backend/core/src/main/java/eu/eudat/data/DmpBlueprintEntity.java b/dmp-backend/core/src/main/java/eu/eudat/data/DmpBlueprintEntity.java index 1cce3b045..e205dfea8 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/data/DmpBlueprintEntity.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/DmpBlueprintEntity.java @@ -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";