X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Fdomain%2Fdb%2Ffn%2FFnRole.java;h=57d9079702f844c3982130a8998c071a42a18515;hb=0dd6f1189815079526c3f5211f01650bbe5e665b;hp=eda3fb2668acaaccd63aac41b8785e95284bcf46;hpb=682a90dad9795a3fa9aaffbf43c488057b8529e7;p=portal.git diff --git a/portal-BE/src/main/java/org/onap/portal/domain/db/fn/FnRole.java b/portal-BE/src/main/java/org/onap/portal/domain/db/fn/FnRole.java index eda3fb26..57d90797 100644 --- a/portal-BE/src/main/java/org/onap/portal/domain/db/fn/FnRole.java +++ b/portal-BE/src/main/java/org/onap/portal/domain/db/fn/FnRole.java @@ -40,6 +40,7 @@ package org.onap.portal.domain.db.fn; +import java.io.Serializable; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; @@ -69,6 +70,7 @@ import org.onap.portal.domain.db.ep.EpAppRoleFunction; import org.onap.portal.domain.db.ep.EpRoleNotification; import org.onap.portal.domain.db.ep.EpUserRolesRequestDet; import org.onap.portal.domain.db.ep.EpWidgetCatalogRole; +import org.onap.portal.domain.dto.DomainVo; /* CREATE TABLE `fn_role` ( @@ -120,7 +122,7 @@ CREATE TABLE `fn_role` ( @Getter @Setter @Entity -public class FnRole { +public class FnRole extends DomainVo implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) @@ -133,11 +135,8 @@ public class FnRole { @SafeHtml private String roleName; @Column(name = "active_yn", length = 1, columnDefinition = "character varying(1) default 'y'", nullable = false) - @Pattern(regexp = "[YNyn]") - @Size(max = 1) @NotNull - @SafeHtml - private String activeYn; + private Boolean activeYn; @Column(name = "priority", length = 4, columnDefinition = "decimal(4,0) DEFAULT NULL") @Digits(integer = 4, fraction = 0) private Long priority;