e120281 wrote:
I am using hibernate 3.0 and mysql 4.0.15.
I have some problems with turkish chars(i-with no dot, s-with dot and some others).
hibernate save records that include some of the chars above as '?'. for example when i save 'kamıl' it saves it like 'kam?l'.
That could be a problem with your database encoding (see posting above), but you should also use the following query style:
Code:
String value = "turkishCharacters";
Query query = session.createQuery("select ... from ... where c.abc = :value");
query.setString("value", value);
e120281 wrote:
Also i have an other question. after enabling show_sql i see the sql queries on the console but i cannot see the values like below.
insert into ...... values(?,?,?)
Use
log4j.logger.org.hibernate.type=DEBUG in your log4j.properties. and the parameters will be logged as well.
Best regards
Sven