public void update(User user) {
		try {

			Connection connection = DataSourceUtils.getConnection(dataSource);

			PreparedStatement statement = connection
					.prepareStatement("UPDATE usuario SET email=?, password = ?, name = ?, last_name = ?, admin = ?"
							+ "WHERE id = ?");

			statement.setString(1, user.getEmail());
			statement.setString(2, user.getPassword());
			statement.setString(3, user.getName());
			statement.setString(4, user.getlastName());
			statement.setBoolean(5, user.getAdmin());

			statement.executeUpdate();

		} catch (SQLException e) {
			e.printStackTrace();
		}
	}