I\'m new to all this Hibernate/JPA stuff, so i will try to be as clear as possible.
Is there any way in Hibernate to use createNativeQuery to select a single/or mult
String SQL = ".."; //same SQL as you had before Query query = getEntityManager().createNativeQuery(SQL); //no entity mapping query.setParameter("idContact", 9293L); String string = (String)query.getSingleResult(); System.out.println(string);