I'm working with mysql 5.1 / glassfish v2 .1 /EJB3/JDK6
I want from a nativequery read a field of CHAR(n) in a database, when I user varchar , it s works, but if i use char(n), I always get a Character instead of a
String.
When i user native query to retrive data then I get a java.lang.Character instead of a String.
How can solve this. please help me if this can't i have to change whole database architecture. Therefore I should do this.