diff options
author | FrancescoFioraEst <francesco.fiora@est.tech> | 2023-11-22 16:32:07 +0000 |
---|---|---|
committer | Francesco Fiora <francesco.fiora@est.tech> | 2023-11-24 16:04:33 +0000 |
commit | d1f43390b090bbdb480c8da31e9fdae0c8e00be4 (patch) | |
tree | 5f61f94d9758dc3bbf4804247642008f6f4a9f15 /models/src/main/java | |
parent | 61571e7b5119793bbbfb8942db5765d16fbd4fdf (diff) |
Allow semantic versioning in all templates in ACM
Issue-ID: POLICY-4886
Change-Id: I0c46397e86377e6f59f55121a60b8f2b5665a5d5
Signed-off-by: FrancescoFioraEst <francesco.fiora@est.tech>
Diffstat (limited to 'models/src/main/java')
-rwxr-xr-x | models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java index 4069d7bb1..28689e2fd 100755 --- a/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java +++ b/models/src/main/java/org/onap/policy/clamp/models/acm/persistence/concepts/JpaAutomationCompositionDefinition.java @@ -46,8 +46,10 @@ import org.onap.policy.clamp.models.acm.document.base.ToscaServiceTemplateValida import org.onap.policy.clamp.models.acm.document.concepts.DocToscaServiceTemplate; import org.onap.policy.common.parameters.BeanValidationResult; import org.onap.policy.common.parameters.annotations.NotNull; +import org.onap.policy.common.parameters.annotations.Pattern; import org.onap.policy.common.parameters.annotations.Valid; import org.onap.policy.models.base.PfAuthorative; +import org.onap.policy.models.base.PfKey; import org.onap.policy.models.base.Validated; /** @@ -67,10 +69,12 @@ public class JpaAutomationCompositionDefinition extends Validated @Column @NotNull + @Pattern(regexp = PfKey.NAME_REGEXP) private String name; @Column @NotNull + @Pattern(regexp = PfKey.VERSION_REGEXP) private String version; @Column |