Enable ownership editing on the policy

revert-70aa11f8
Kamidu Sachith 9 years ago
parent 4590de6a76
commit d7c942f395

@ -280,14 +280,15 @@ public class PolicyDAOImpl implements PolicyDAO {
try {
conn = this.getConnection();
String query = "UPDATE DM_POLICY SET PRIORITY = ?, UPDATED = ? WHERE ID = ? AND TENANT_ID = ?";
String query = "UPDATE DM_POLICY SET PRIORITY = ?, UPDATED = ?, OWNERSHIP_TYPE = ? WHERE ID = ? AND TENANT_ID = ?";
stmt = conn.prepareStatement(query);
for (Policy policy : policies) {
stmt.setInt(1, policy.getPriorityId());
stmt.setInt(2, 1);
stmt.setInt(3, policy.getId());
stmt.setInt(4, tenantId);
stmt.setString(3, policy.getOwnershipType());
stmt.setInt(4, policy.getId());
stmt.setInt(5, tenantId);
stmt.addBatch();
}
stmt.executeBatch();

Loading…
Cancel
Save