From 7db7ca058fddb58970abccd2c3728d136dc16c80 Mon Sep 17 00:00:00 2001 From: Amaresh Kumar Date: Tue, 21 Aug 2018 15:34:33 +0530 Subject: Sonar fix in RoleApp.Java Fixed all Sonar issues in RoleApp.Java Issue-ID: PORTAL-367 Change-Id: I56d6bdc66ec03a61e1f7991a2d7c1580ffcaeb9c Signed-off-by: Amaresh Kumar --- .../java/org/onap/portalapp/widget/domain/RoleApp.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'ecomp-portal-widget-ms/widget-ms') 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 widgets; + private transient Set 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 widgets = new HashSet(); - public Long getRoleId() { return roleId; } -- cgit 1.2.3-korg