diff options
author | 2018-09-12 16:30:01 +0000 | |
---|---|---|
committer | 2018-09-12 16:30:01 +0000 | |
commit | 0cb063e2e1fa065906b734ae42b73163fee147ab (patch) | |
tree | a2d6da096635dbf495ca7e441e8fda1b1e0a8017 /ecomp-portal-widget-ms/widget-ms/src/main/java/org | |
parent | ba9c4b1abfcc513c3cedc423f423c82b241248e8 (diff) | |
parent | 7db7ca058fddb58970abccd2c3728d136dc16c80 (diff) |
Merge "Sonar fix in RoleApp.Java"
Diffstat (limited to 'ecomp-portal-widget-ms/widget-ms/src/main/java/org')
-rw-r--r-- | ecomp-portal-widget-ms/widget-ms/src/main/java/org/onap/portalapp/widget/domain/RoleApp.java | 18 |
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; } |