Sonar fix in RoleApp.Java 25/61525/1
authorAmaresh Kumar <kamaresh@in.ibm.com>
Tue, 21 Aug 2018 10:04:33 +0000 (15:34 +0530)
committerAmaresh Kumar <kamaresh@in.ibm.com>
Tue, 21 Aug 2018 10:04:45 +0000 (15:34 +0530)
Fixed all Sonar issues in RoleApp.Java

Issue-ID: PORTAL-367
Change-Id: I56d6bdc66ec03a61e1f7991a2d7c1580ffcaeb9c
Signed-off-by: Amaresh Kumar <kamaresh@in.ibm.com>
ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java

index 807067b..7ae3c27 100644 (file)
@@ -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;
        }