Hibernate native query - char(3) column
I have a table in Oracle where column SC_CUR_CODE is CHAR(3) When I do: Query q2 = em.createNativeQuery("select sc_cur_code, sc_amount from sector_costs"); q2.setMaxResults(10); List<Object[]> rs2 = q2.getResultList(); for (Object[] o : rs2) { System.out.println(">>> cur=" + o[0]); } I see cur=E and cur=U instead of cur=EUR and cur=USD o[0] is a java.lang.Character How can I get the full value EUR and USD ? axtavt It looks like Hibernate reads value of type CHAR(n) as Character . Try to cast it to VARCHAR(n) : Query q2 = em.createNativeQuery( "select cast(sc_cur_code as VARCHAR2(3)), sc_amount