Statement statement = connection.createStatement();
String query = "update into Cart set name = '" + item.getName() + "', price = '" + item.getPrice() + "' where id = '" + key + "'";
System.out.println(query);
int count = statement.executeUpdate(query);
if (count == 0)
throw new NotFoundException(key);
} catch (SQLException e) {
throw new ServiceRuntimeException(e);
}
}