character « Field « JPA Q&A





1. Unknown character set index for field received from server    stackoverflow.com

I have an instance of MySQL 5.0.4.1 with an application written in Hibernate. On one of the pages, I get the following error message in the server log:

Unknown character ...

2. TEXT fields - random (?) characters replaced with gibberish    forum.hibernate.org

Hibernate version: 3.0 Basically after I made switch from my old ways (using prepared statements and SQL statements) to Hibernate, my client pointed out a problem: Whenever I would do HibernateUtil.update( myclass ), where I only changed some INT value, the TEXT field containing description of an object would (apparently) also be updated (even though it wasn't changed) and some gibberish ...

3. Updating CLOB fields > 4K characters yields null    forum.hibernate.org

I cannot update CLOB fields that are longer than 4000 characters. When saving a record with a CLOB field, mapped as @Lob, if the java string property is longer than 4000 characters, a null is inserted. If <4000 characters, it updates correctly. Is this a limitation with hibernate or Oracle, or am I doing something wrong? Hibernate version: 3.1 Mapping documents: ...