summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaresh Kumar <kamaresh@in.ibm.com>2018-08-21 15:34:33 +0530
committerAmaresh Kumar <kamaresh@in.ibm.com>2018-08-21 15:34:45 +0530
commit7db7ca058fddb58970abccd2c3728d136dc16c80 (patch)
treef60e190b89ff2c98a0c3f26f5c54c213c9686166
parentc7684e595461b70b09d0d9ff15b5ad23aeabebc9 (diff)
Sonar fix in RoleApp.Java
Fixed all Sonar issues in RoleApp.Java Issue-ID: PORTAL-367 Change-Id: I56d6bdc66ec03a61e1f7991a2d7c1580ffcaeb9c Signed-off-by: Amaresh Kumar <kamaresh@in.ibm.com>
-rw-r--r--ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java b/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java
index 807067b2..7ae3c270 100644
--- a/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java
+++ b/ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java
@@ -37,24 +37,8 @@ public class RoleApp implements Serializable{
@JsonIgnore
@ManyToMany(fetch = FetchType.EAGER, cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, mappedBy="widgetRoles")
- private Set<WidgetCatalog> widgets;
+ private transient Set<WidgetCatalog> widgets;
- /*@PreRemove
- private void removeGroupsFromUsers() {
- for (WidgetCatalog w : widgets) {
- w.getWidgetRoles().remove(this);
- }
- }*/
-
- /*@ManyToOne
- @JoinColumn(name = "WIDGET_ID", nullable = false)
- WidgetCatalog widgetCatalog;*/
-
- //@JsonIgnore
- //@ManyToMany(mappedBy = "widgetRoles")
- //@ManyToMany(fetch = FetchType.EAGER, mappedBy = "widgetRoles")
- //private Set<WidgetCatalog> widgets = new HashSet<WidgetCatalog>();
-
public Long getRoleId() {
return roleId;
}