From 930b0f662d620eda54f652d9e3051136148ecea4 Mon Sep 17 00:00:00 2001 From: BimsaraBodaragama Date: Sat, 25 Jan 2025 16:09:53 +0530 Subject: [PATCH] Add batch insert. --- .../management/dao/ResourceSharingPolicyHandlerDAOImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/org.wso2.carbon.identity.organization.resource.sharing.policy.management/src/main/java/org/wso2/carbon/identity/organization/resource/sharing/policy/management/dao/ResourceSharingPolicyHandlerDAOImpl.java b/components/org.wso2.carbon.identity.organization.resource.sharing.policy.management/src/main/java/org/wso2/carbon/identity/organization/resource/sharing/policy/management/dao/ResourceSharingPolicyHandlerDAOImpl.java index 024853d4c..6862e9f1c 100644 --- a/components/org.wso2.carbon.identity.organization.resource.sharing.policy.management/src/main/java/org/wso2/carbon/identity/organization/resource/sharing/policy/management/dao/ResourceSharingPolicyHandlerDAOImpl.java +++ b/components/org.wso2.carbon.identity.organization.resource.sharing.policy.management/src/main/java/org/wso2/carbon/identity/organization/resource/sharing/policy/management/dao/ResourceSharingPolicyHandlerDAOImpl.java @@ -231,6 +231,7 @@ public boolean addSharedResourceAttributes(List sharedR template.executeBatchInsert(CREATE_SHARED_RESOURCE_ATTRIBUTE, (namedPreparedStatement -> { for (SharedResourceAttribute sharedResourceAttribute : sharedResourceAttributes) { setSharedResourceAttributeParameters(namedPreparedStatement, sharedResourceAttribute); + namedPreparedStatement.addBatch(); } }), null); return true;