X-Git-Url: https://gerrit.onap.org/r/gitweb?p=portal.git;a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Fdomain%2Fdb%2Fep%2FEpMicroservice.java;h=2388c53e363bd33290af4fe1535f0ea2d13466c5;hp=35e51be6d6896281d7e593d34aa3043d526ba868;hb=2eaf7baff879929156699033bf62d29c0fd0040f;hpb=f71707238ebabd9911277af55673b1d42ac1495f diff --git a/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpMicroservice.java b/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpMicroservice.java index 35e51be6..2388c53e 100644 --- a/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpMicroservice.java +++ b/portal-BE/src/main/java/org/onap/portal/domain/db/ep/EpMicroservice.java @@ -40,8 +40,7 @@ package org.onap.portal.domain.db.ep; -import java.util.ArrayList; -import java.util.List; +import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; @@ -63,7 +62,6 @@ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; -import lombok.ToString; import org.hibernate.validator.constraints.SafeHtml; import org.hibernate.validator.constraints.URL; import org.onap.portal.domain.db.fn.FnApp; @@ -90,7 +88,7 @@ CREATE TABLE `ep_microservice` ( }) @NoArgsConstructor @AllArgsConstructor -@ToString + @Getter @Setter @Entity @@ -136,14 +134,14 @@ public class EpMicroservice { @SafeHtml private String active; @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) - private List epWidgetCatalogList = new ArrayList<>(); + private Set epWidgetCatalogList; @OneToMany( targetEntity = EpMicroserviceParameter.class, mappedBy = "serviceId", cascade = CascadeType.ALL, fetch = FetchType.LAZY ) - private List epMicroserviceParameters = new ArrayList<>(); + private Set epMicroserviceParameters; public void copyOf(final EpMicroservice epMicroservice) { this.id = epMicroservice.getId();