diff options
author | liamfallon <liam.fallon@est.tech> | 2019-03-20 16:08:21 +0000 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2019-03-20 16:08:21 +0000 |
commit | 8fc237cc606b6e9c8c7d7e7a2c811fc671a4b40e (patch) | |
tree | 1dc4369a5f94683a2140f28968a1bd32566743df /models-base/src/main/java/org | |
parent | d614f2f3871ea6b46b0e8b0bbd8be70414710164 (diff) |
Implement persistence test for policies
The unit test MonitoringPolicySerializationTest tests
persistence for policies and shows how persistence works.
Issue-ID: POLICY-1195
Change-Id: I933eb538238f9ccd41ce69614e0c9afcac869c29
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'models-base/src/main/java/org')
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java | 4 | ||||
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfReferenceKey.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java b/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java index 695ca4712..9f575851b 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java @@ -50,10 +50,10 @@ public class PfConceptKey extends PfKey { private static final String NAME_TOKEN = "name"; private static final String VERSION_TOKEN = "version"; - @Column(name = NAME_TOKEN) + @Column(name = NAME_TOKEN, length = 128) private String name; - @Column(name = VERSION_TOKEN) + @Column(name = VERSION_TOKEN, length = 128) private String version; /** diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfReferenceKey.java b/models-base/src/main/java/org/onap/policy/models/base/PfReferenceKey.java index 2e9f48ba5..19e8beee9 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfReferenceKey.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfReferenceKey.java @@ -72,16 +72,16 @@ public class PfReferenceKey extends PfKey { private static final int PARENT_LOCAL_NAME_FIELD = 2; private static final int LOCAL_NAME_FIELD = 3; - @Column(name = PARENT_KEY_NAME) + @Column(name = PARENT_KEY_NAME, length = 128) private String parentKeyName; - @Column(name = PARENT_KEY_VERSION) + @Column(name = PARENT_KEY_VERSION, length = 128) private String parentKeyVersion; - @Column(name = PARENT_LOCAL_NAME) + @Column(name = PARENT_LOCAL_NAME, length = 128) private String parentLocalName; - @Column(name = LOCAL_NAME) + @Column(name = LOCAL_NAME, length = 128) private String localName; /** |