private Petition(ResultSet result) throws SQLException{
		setUserID(result.getInt("user_id"));
		setTitle(result.getString("title"));
		setCategoryID(result.getInt("category_id")); 
		setAmount(result.getInt("amount")); 
		setState(result.getString("state"));
		
		setID(result.getInt("id"));
		setDescription(result.getString("description"));
		setPrice(result.getInt("price"));

		if (result.getString("image_url") != null) {
			try {
				setImageURL( new URL(
						result.getString("image_url")));
			} catch (MalformedURLException e) {
				e.printStackTrace();
			}
		}
		
		setCreation(result.getDate("created"));
	}