Hello,
I'm using Hibernate/Spring and I get an
"java.lang.StringIndexOutOfBoundsException: String index out of range:
0" whenever Hibernate is trying to convert back values from DB to
Java.
It's failing on a column of type CHAR wich is handled by
ValueStringFixed.
After taking a closer look at that class, it appears to trim the value
from/to DB.
The problem I have is that I'm trying to insert a single space value
for into CHAR column.
The insert is working but value is set to empty CHAR in DB and
whenever reading it using Hibernate then it gives the
"StringIndexOutOfBoundsException" exception.
So, my question is why is that value trimmed (which prevent it to be a
space) and how to avoid it.
Thanks in advance for any help,

  Michel

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to