public void update(Actor actor) {
		try {

			Connection connection = DataSourceUtils.getConnection(dataSource);

			PreparedStatement statement = connection
					.prepareStatement("UPDATE actor SET name = ?, last_name = ? "
							+ "WHERE ida = ?");

			statement.setString(1, actor.getName());
			statement.setString(2, actor.getLName());
			statement.setInt(4, actor.getId());

			statement.executeUpdate();
			//connection.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}

	}