From a68bf8934f3b67a54241e5bfc8f5b784ae9286a8 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Fri, 5 Jan 2024 13:56:26 +0200 Subject: [PATCH] added anotation for the column name in order to escape mysql reserved word 'value' --- .../java/org/etsi/osl/oas/model/ActionCharacteristic.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/etsi/osl/oas/model/ActionCharacteristic.java b/src/main/java/org/etsi/osl/oas/model/ActionCharacteristic.java index ad9a371..c3157b9 100644 --- a/src/main/java/org/etsi/osl/oas/model/ActionCharacteristic.java +++ b/src/main/java/org/etsi/osl/oas/model/ActionCharacteristic.java @@ -2,6 +2,7 @@ package org.etsi.osl.oas.model; import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.persistence.Column; import org.hibernate.annotations.GenericGenerator; import org.springframework.validation.annotation.Validated; @@ -16,7 +17,7 @@ import lombok.Data; * * */ -@Schema(description = "An ActionCharacteristic is an entity that describes the values of the characteristics of ana ction in a rule.") +@Schema(description = "An ActionCharacteristic is an entity that describes the values of the characteristics of an action in a rule.") @Validated @Entity(name = "OASActionCharacteristic") @@ -33,5 +34,6 @@ public class ActionCharacteristic { protected String name = null; @JsonProperty("value") + @Column(name = "\"value\"") protected String value = null; } -- GitLab