@Override
	public boolean create(Chambre x) 
	{
                String req = "INSERT INTO `chambre`("
                        + "`datedebut`, "
                        + "`datefin`, "
                        + "`titre`, "
                        + "`description`, "
                        + "`prix`, "
                        + "`capacite`, "
                        + "`numerodechambre`, "
                        + "`image`, "
                        + "`ville`, "
                        + "`adresse`,"
                        + "`hotelierid`"
                        + ") "
                        + "VALUES ("
                        +"\""+x.getDateDebut()+"\","
                        +"\""+x.getDateFin()+"\","
                        +"\""+x.getTitre()+"\","
                        +"\""+x.getDescription()+"\","
                        +x.getPrix()+","
                        +x.getCapacite()+","
                        +"\""+x.getNumeroDeChambre()+"\","
                        +"\""+x.getImage()+"\","
                        +"\""+x.getVille()+"\","
                        +"\""+x.getAdresse()+"\","
                        +x.getHotelierId()
                        +")";
		Statement stm = null;
		try 
		{
			stm = cnx.createStatement(); 
			int n= stm.executeUpdate(req,Statement.RETURN_GENERATED_KEYS);
			if (n>0)
			{
                                x.setChambreId(n);
				stm.close();
				return true;
			}
		}
		catch (SQLException exp)
		{
                    System.out.print(exp);
		}
		finally
		{
			if (stm!=null)
			try {
				stm.close();
			} catch (SQLException e) {
				e.printStackTrace(); 
			}			
		}

		return false;
	}