Merge "Sonar fix in RoleApp.Java"
authorManoop Talasila <talasila@research.att.com>
Wed, 12 Sep 2018 16:30:01 +0000 (16:30 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 12 Sep 2018 16:30:01 +0000 (16:30 +0000)
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;
        }