Remove large object from jpa classes 02/140902/2
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Mon, 19 May 2025 12:25:43 +0000 (13:25 +0100)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Mon, 19 May 2025 12:25:43 +0000 (13:25 +0100)
Issue-ID: POLICY-5365
Signed-off-by: rameshiyer27 <ramesh.murugan.iyer@est.tech>
Change-Id: I2050cd7a127f4cf951ce0b4c518b53451b03f08f

models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java
models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionElement.java
models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaMessage.java
models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaNodeTemplateState.java

index 3d61c4e..02ec19a 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2022-2024 Nordix Foundation.
+ *  Copyright (C) 2022-2025 OpenInfra Foundation Europe. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,6 @@ import jakarta.persistence.Id;
 import jakarta.persistence.Inheritance;
 import jakarta.persistence.InheritanceType;
 import jakarta.persistence.JoinColumn;
-import jakarta.persistence.Lob;
 import jakarta.persistence.OneToMany;
 import jakarta.persistence.Table;
 import java.sql.Timestamp;
@@ -93,8 +92,7 @@ public class JpaAutomationCompositionDefinition extends Validated
     @JoinColumn(name = "compositionId", foreignKey = @ForeignKey(name = "dt_element_fk"))
     private Set<JpaNodeTemplateState> elements = new HashSet<>();
 
-    @Lob
-    @Column(length = 100000)
+    @Column(length = 200000)
     @Convert(converter = StringToServiceTemplateConverter.class)
     @NotNull
     @Valid
index e511ba1..15f5479 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * Copyright (C) 2021-2024 Nordix Foundation.
+ * Copyright (C) 2021-2025 OpenInfra Foundation Europe. All rights reserved.
  * ================================================================================
  * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
@@ -29,7 +29,6 @@ import jakarta.persistence.Entity;
 import jakarta.persistence.Id;
 import jakarta.persistence.Inheritance;
 import jakarta.persistence.InheritanceType;
-import jakarta.persistence.Lob;
 import jakarta.persistence.Table;
 import java.util.LinkedHashMap;
 import java.util.Map;
@@ -113,14 +112,12 @@ public class JpaAutomationCompositionElement extends Validated
     @Column
     private String message;
 
-    @Lob
     @NotNull
     @Valid
     @Convert(converter = StringToMapConverter.class)
     @Column(length = 100000)
     private Map<String, Object> properties;
 
-    @Lob
     @NotNull
     @Valid
     @Convert(converter = StringToMapConverter.class)
index ac23d52..ab6cc0f 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * Copyright (C) 2025 Nordix Foundation.
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,7 +27,6 @@ import jakarta.persistence.Id;
 import jakarta.persistence.Index;
 import jakarta.persistence.Inheritance;
 import jakarta.persistence.InheritanceType;
-import jakarta.persistence.Lob;
 import jakarta.persistence.Table;
 import java.sql.Timestamp;
 import java.util.UUID;
@@ -59,7 +58,6 @@ public class JpaMessage extends Validated implements PfAuthorative<DocMessage> {
     @NotNull
     private Timestamp lastMsg = TimestampHelper.nowTimestamp();
 
-    @Lob
     @Column(length = 100000)
     @Convert(converter = StringToDocMessage.class)
     @NotNull
index 24f17dc..01d2167 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2023 Nordix Foundation.
+ *  Copyright (C) 2023,2025 OpenInfra Foundation Europe. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,7 +27,6 @@ import jakarta.persistence.Entity;
 import jakarta.persistence.Id;
 import jakarta.persistence.Inheritance;
 import jakarta.persistence.InheritanceType;
-import jakarta.persistence.Lob;
 import jakarta.persistence.Table;
 import java.util.Map;
 import java.util.UUID;
@@ -79,7 +78,6 @@ public class JpaNodeTemplateState extends Validated implements PfAuthorative<Nod
     @Column
     private String message;
 
-    @Lob
     @NotNull
     @Valid
     @Convert(converter = StringToMapConverter.class)