These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: setup latin2 charset
PostPosted: Thu Jan 06, 2005 6:38 pm 
Newbie

Joined: Thu Jan 06, 2005 6:33 pm
Posts: 5
Hello! How can i setup latin2 charset? or ISO 8859-2

thanks for the answers!
Gregory from Hungary



[b]Hibernate version:2[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 7:19 am 
Newbie

Joined: Thu Jan 06, 2005 6:33 pm
Posts: 5
up!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 7:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is a hibernate forum! If you don't have a Hibernate specific question (and it can't be, because Hibernate does not care at all about charsets), please ask somewhere else.


Top
 Profile  
 
 Post subject: hibernate
PostPosted: Mon Jan 10, 2005 8:01 am 
Newbie

Joined: Thu Jan 06, 2005 6:33 pm
Posts: 5
i have a problem. when i save the data on hibernate, from á,ő,ú,ó,ü,ö spell will be &,ß,$ ....

why is that? how can i setup the correct charset?

the database charset is correct.
(Sorry, for bad english)

this is my cfg.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>
<session-factory>
<!-- local connection properties -->
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306/vendegvaro?useUnicode=true&amp;characterEncoding=Latin2
</property>
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password" />
<property name="hibernate.connection.charset">Latin2</property>
<!-- property name="hibernate.connection.pool_size"></property -->
<!-- dialect for MySQL -->
<property name="dialect">
net.sf.hibernate.dialect.MySQLDialect
</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.use_outer_join">true</property>
<property name="transaction.factory_class">
net.sf.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
net.sf.hibernate.cache.HashtableCacheProvider
</property>
<property name="jta.UserTransaction">
java:comp/UserTransaction
</property>
<mapping resource="hu/szecsenyi/vendegvaro/table/Appartman.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/Foglalas.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/QuickFog.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/Tulajdonos.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/Beallitas.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/Szallashely.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/User.hbm.xml" />
<mapping resource="hu/szecsenyi/vendegvaro/table/Vendeg.hbm.xml" />

</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 9:31 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Because you are doing something wrong with your database. Stop using Hibernate and use direct JDBC with your setup, it will be the same.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.