Subject RE: [Firebird-Java] Hibernate - How/Where to set connection encoding?
Author Sturdevant, Jonathon
I don't know how your Hibernate is set up, but you can specify it with
the connections string in the hibernate.cfg.xml or the
hibernate.properties.



Something like this:



hibernate.connection.url=jdbc:firebirdsql:localhost/3050:/path/to/databa
se.FDB?lc_ctype=UTF8 (or whatever it is you are using)



Hibernate does specify that you can include parameters in the
connections string by placing another property in the file as an
alternative.

You could have something like this:



hibernate.connection.url=jdbc:firebirdsql:localhost/3050:/path/to/databa
se.FDB

hibernate.connection.lc_ctype=UTF8



Of course, these examples are for hibernate.properties, if you are using
hibernate.cfg.xml they will have similar structures, but be written in
xml.



-Jon



_____

From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of maximshiryaev
Sent: Thursday, April 06, 2006 2:01 PM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Hibernate - How/Where to set connection
encoding?



Hi!

I'm trying to setup Alfresco CMS. It uses Hibernate. Their default
installation uses MySQL. But since all my infomation systems use
Firebird I want to use it.

The problem is following: I've created a FB2RC1 database with UTF8
encoding and when I try to enter some Russian text into Alfresco space
names, description etc. it fails. It's obvious (?) that the encoding
connection parameter is missign and I don't know Hiberntate enough to
find where to set it. Alfresco provides customized properties files
for driver name and connection URL only.

May be there is some enviromnemt variable exists to set default
connection encoding or some extension of URL?

Additional info:
JDBC: latest JayBird 2.0.1


Thanks.

Maxim Shiryaev.









SPONSORED LINKS

Basic programming language
<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Basic
+programming+language&w2=Computer+programming+languages&w3=Programming+l
anguages&w4=Java+programming+language&c=4&s=126&.sig=bnac3LCZpttb3c9FvbV
U-A>

Computer programming languages
<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=B
asic+programming+language&w2=Computer+programming+languages&w3=Programmi
ng+languages&w4=Java+programming+language&c=4&s=126&.sig=1Czd2hKCO9_u4KV
ZQperFQ>

Programming languages
<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Basic+prog
ramming+language&w2=Computer+programming+languages&w3=Programming+langua
ges&w4=Java+programming+language&c=4&s=126&.sig=TyHGCjod4YOKITrSq1xccQ>


Java programming language
<http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Basic+
programming+language&w2=Computer+programming+languages&w3=Programming+la
nguages&w4=Java+programming+language&c=4&s=126&.sig=PZAexF9LyXpKb3HDJSlB
1g>







_____

YAHOO! GROUPS LINKS



* Visit your group "Firebird-Java
<http://groups.yahoo.com/group/Firebird-Java> " on the web.

* To unsubscribe from this group, send an email to:
Firebird-Java-unsubscribe@yahoogroups.com
<mailto:Firebird-Java-unsubscribe@yahoogroups.com?subject=Unsubscribe>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .



_____



[Non-text portions of this message have been removed]