From eab9a0f61a42a0b80a2f85ba6982efb3ed270e4e Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Fri, 26 Jul 2024 09:19:35 -0400 Subject: [PATCH] [CHORE] - Switch fetch type to EAGER --- .../edu/harvard/hms/dbmi/avillach/auth/entity/AccessRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/entity/AccessRule.java b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/entity/AccessRule.java index 50b1ab83..15b44a0d 100644 --- a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/entity/AccessRule.java +++ b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/entity/AccessRule.java @@ -162,7 +162,7 @@ public static Map getTypeNameMap(){ /** * introduce sub-accessRule to enable the ability of more complex problem, essentially it is an AND relationship. */ - @ManyToMany(fetch = FetchType.LAZY) + @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "accessRule_subRule", joinColumns = {@JoinColumn(name = "accessRule_id", nullable = false)}, inverseJoinColumns = {@JoinColumn(name = "subRule_id", nullable = false)})