Remove unneeded validation from JPA classes 39/142939/3
authordanielhanrahan <daniel.hanrahan@est.tech>
Mon, 5 Jan 2026 15:47:58 +0000 (15:47 +0000)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Mon, 19 Jan 2026 11:38:40 +0000 (11:38 +0000)
Issue-ID: POLICY-5509
Change-Id: I67fc2e874d008b5c3583a2924102f75bac430283
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
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/JpaMessageJob.java

index ab6cc0f..eb730fe 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2025-2026 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.
@@ -34,7 +34,6 @@ import lombok.Data;
 import lombok.NonNull;
 import org.onap.policy.clamp.models.acm.document.concepts.DocMessage;
 import org.onap.policy.clamp.models.acm.utils.TimestampHelper;
-import org.onap.policy.common.parameters.BeanValidationResult;
 import org.onap.policy.common.parameters.annotations.NotNull;
 import org.onap.policy.models.base.PfAuthorative;
 import org.onap.policy.models.base.Validated;
@@ -84,16 +83,6 @@ public class JpaMessage extends Validated implements PfAuthorative<DocMessage> {
         fromAuthorative(docMessage);
     }
 
-    @Override
-    public BeanValidationResult validate(@NonNull String fieldName) {
-        var result = super.validate(fieldName);
-        if (!result.isValid()) {
-            return result;
-        }
-
-        return result;
-    }
-
     @Override
     public DocMessage toAuthorative() {
         return new DocMessage(this.docMessage);
index 95a6216..e9cac40 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2025 Nordix Foundation.
+ *  Copyright (C) 2025-2026 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.
@@ -32,7 +32,6 @@ import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.NonNull;
 import org.onap.policy.clamp.models.acm.utils.TimestampHelper;
-import org.onap.policy.common.parameters.BeanValidationResult;
 import org.onap.policy.common.parameters.annotations.NotNull;
 import org.onap.policy.models.base.Validated;
 
@@ -62,14 +61,4 @@ public class JpaMessageJob extends Validated {
     public JpaMessageJob(@NonNull final String identificationId) {
         this.identificationId = identificationId;
     }
-
-    @Override
-    public BeanValidationResult validate(@NonNull String fieldName) {
-        var result = super.validate(fieldName);
-        if (!result.isValid()) {
-            return result;
-        }
-
-        return result;
-    }
 }