Fix delete groups with Geo Fence references issue #223
Merged
pahansith
merged 1 commits from ThilinaPremachandra/device-mgt-core:Bug#10236#issue36
into master
1 year ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'ThilinaPremachandra/device-mgt-core:Bug#10236#issue36'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Purpose
Fix: 36th issue in https://roadmap.entgra.net/issues/10236 (If a group was selected in a geofence, we can't delete that group.)
Approach
stmt.setInt(1, groupId);
stmt.setInt(2, tenantId);
stmt.executeUpdate();
sql = "DELETE FROM DM_DEVICE_EVENT_GROUP_MAPPING WHERE GROUP_ID = ?";
I'm seeing multiple delete queries in a single DAO method. What is the reason for adding this? What will happen if any of a delete fails?
616c70face
into master 1 year ago616c70face
.