aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java
diff options
context:
space:
mode:
authorrb7147 <rb7147@att.com>2018-02-13 18:17:22 -0500
committerrb7147 <rb7147@att.com>2018-02-13 23:17:59 -0500
commit49048e277bba438cf6486c1229b53f608a7af114 (patch)
tree50c3b252ea07e91aa04e5df2087e7a69cf5266f8 /ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java
parent8baa15218033f9ab6741645eb380e17eb7d9c2dd (diff)
Added Junits for Policy PAP-REST
Cleaned the unnecessary constructors and methods in onap-rest. Added Junits for JPA Classes in ONAP-REST. Issue-ID: POLICY-338 Change-Id: I7e4f928342315475db96d89e9ad3adac5cb7eb00 Signed-off-by: rb7147 <rb7147@att.com>
Diffstat (limited to 'ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java')
-rw-r--r--ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java27
1 files changed, 1 insertions, 26 deletions
diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java
index 356ecb7c9..98a4e58e7 100644
--- a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java
+++ b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/VMType.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP-REST
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. 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,8 +30,6 @@ import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OrderBy;
-import javax.persistence.PrePersist;
-import javax.persistence.PreUpdate;
import javax.persistence.Table;
@@ -41,8 +39,6 @@ import javax.persistence.Table;
public class VMType implements Serializable {
private static final long serialVersionUID = 1L;
- private static String domain;
-
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="id")
@@ -55,27 +51,6 @@ public class VMType implements Serializable {
@Column(name="description")
private String description;
-
- public VMType() {
- // Empty constructor
- }
- public VMType(String string, String userid) {
- this(domain);
-
- }
- public VMType(String domain) {
- // Empty constructor
- }
-
- @PrePersist
- public void prePersist() {
- // Empty function
- }
- @PreUpdate
- public void preUpdate() {
- // Empty function
- }
-
public String getDescription() {
return description;
}