When I run a native JPA query like this: "select name from customer where id = 100" and name is varchar2 in db, the native query returns an Object. Can I cast it to String directly in java or do I have to manipulate it like a ResultSet?
When I run a native JPA query like this: select name from customer where
Share
getResultList will return a List, you can cast the value in the list to a String.
getSingleResult will return Object, you can cast it to a String.