[
http://opensource.atlassian.com/projects/hibernate/browse/HB-849?page=com...
]
Orhan Yilmaz commented on HB-849:
---------------------------------
I have hibernate version 3.2 and problem still continues.
Locale issue with the generated class alias name
------------------------------------------------
Key: HB-849
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HB-849
Project: Hibernate2
Type: Bug
Components: core
Environment: Hibernate 2.2
Reporter: Reha CENANI
Assignee: Emmanuel Bernard
Original Estimate: 1 minute
Remaining: 1 minute
generateAlias method of the net.sf.hibernate.loader.Loader uses toLowerCase() when
generating class aliases. Since the toLowerCase() makes conversion by using the default
system locale, some non-English locales (e.g. Turkish) cause improper alias generation.
For example, when the default system locale is set to Turkish (tr_TR), letter 'I'
is converted to 'dotless i', instead of 'i'. Because of this, generated
aliases and the sql statements which depend on these aliases contain wrong characters.
In order to prevent this situation, replacing toLowerCase() with toLowerCase(Locale.US)
explicitly determines which locale will be used during the conversion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira