Hello.
Im having a problem with hibernate right now. We are using it in a web app with nothing really special. Just forms being used a lot and we have hibernate to handle the database end. It is saving information into the database, but whenever I save a string value into the database, it adds up to 61 white spaces at the end.
Now when I say 'up to', it adds on 61-(length of string) total white spaces. that number always stays the same. But if its an integer being saved, it doesnt do anything wrong at all. No white spaces added. Ive tried setting the maxlength in teh xml config for that class type and it doesnt help. Ive also tried doing a .trim() value for the object before saving into the database, and it still does it.
Ive even set it up to where i put a .trim() on the string right before it is saved, then i save it. after that , i retrieve it and it has the white spaces in it.
Ive tried poking around online to see if I could find any related issues, but I have not. If you have any thoughts, please let me know. Thank you.
Marcel
|