Hi all,
I have a NetBean projects using Hibernate, when using Oracle before, everything works fine.
Now I have to test to save data in MSSQL Server, I found that when the data type is nvarchar or varchar, say 20 or 50 values, trailing space will be saved if the data value is 25 (i.e. 25 spaces), or 36 (i.e. 14 spaces).
I check the String variables before persist, and found that the values is ok, so I am sure that there must be some mapping config which I have to tune, but I don't have any idea.
Any one have suggestion? Thx.
|