-public class EpAppFunction implements Serializable{
- @Id
- @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
- @JoinColumn(name = "app_id")
- @Valid
- private FnApp appId;
- @Id
- @Column(name = "function_cd", length = 250, nullable = false)
- @Size(max = 250)
- @NotNull
- @SafeHtml
- private String functionCd;
- @Column(name = "function_name", length = 250, nullable = false)
- @Size(max = 250)
- @NotNull
- @SafeHtml
- private String functionName;
- @OneToMany(
- targetEntity = EpAppRoleFunction.class,
- mappedBy = "epAppFunction",
- cascade = CascadeType.ALL,
- fetch = FetchType.LAZY
- )
- private Set<EpAppRoleFunction> epAppRoleFunctions;
+public class EpAppFunction extends DomainVo implements Serializable {
+
+ @Id
+ @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
+ @JoinColumn(name = "app_id")
+ @Valid
+ private FnApp appId;
+ @Id
+ @Column(name = "function_cd", length = 250, nullable = false)
+ @Size(max = 250)
+ @NotNull
+ @SafeHtml
+ private String functionCd;
+ @Column(name = "function_name", length = 250, nullable = false)
+ @Size(max = 250)
+ @NotNull
+ @SafeHtml
+ private String functionName;
+
+ private Long roleId;
+ private String type;
+ @SafeHtml
+ private String action;
+ @SafeHtml
+ private String editUrl;
+
+ @OneToMany(
+ targetEntity = EpAppRoleFunction.class,
+ mappedBy = "epAppFunction",
+ cascade = CascadeType.ALL,
+ fetch = FetchType.LAZY
+ )
+ private Set<EpAppRoleFunction> epAppRoleFunctions;
+
+ public EpAppFunction(Long id, String code, String name, FnApp appId, String type, String action, String editUrl) {
+ super();
+ this.id = id;
+ this.functionCd = code;
+ this.functionName = name;
+ this.appId = appId;
+ this.type = type;
+ this.action = action;
+ this.editUrl = editUrl;
+ }
+
+ @Getter
+ @Setter
+ @EqualsAndHashCode
+ @NoArgsConstructor
+ @AllArgsConstructor
+ public static class EpAppFunctionId implements Serializable {