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
Just try to call createNativeQuery() without passing String.class. If the name column is of string-type in database query.getSingleResult() will actually return a String.
createNativeQuery()
String.class
name
query.getSingleResult()
String