As simple as that:
this.getEntityManager().createQuery("select salesPrice from Price where depotname = :depotname" and where productname=:productname).setParameter("depotname", depotname).setParameter("productname", productname).getSingleResult().toString();