Hi all!
Sorry if similar problem already posted, I did not find anything...
OS: Linux Centos 5
JBoss version: 4.2.1GA
Hibernate version: 3.2.6GA
MySQL connector Java: 5.0.6
JRE: 5
I am using annotations in code like this:
@Column(name="mobileString",length=65535)
1st problem:
When length exceeds 65535, Hibernate creates mediumtext column type for String, and UTF8 char set is lost, i.e. non-English text is saved like '????' from Java.
Does anyone know about this problem?
2nd problem:
When I set the length to 65535 for number of fields in the same table, Hibernate creates text column type and it works good for all of the fields except one. I just can not understand why that single field does not save UTF8 text properly. Nothing different in Java code about it...
Can anyone please help?
Thanks.
|