We're updating the issue view to help you get more done. 

toLowerCase() still causes bugs in Turkish locale

Description

When hibernate.hbm2ddl.auto is set to validate I get following exception for a boolean column.

1 2 3 4 5 6 Caused by: org.hibernate.HibernateException: Wrong column type in foodb.bartable for column foobar. Found: bıt, expected: bit at org.hibernate.mapping.Table.validateColumns(Table.java:372) at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1338) at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:175) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:525) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859)

I have found the solution. According to this blog post(http://blog.thetaphi.de/2012/07/default-locales-default-charsets-and.html) solution is using toLowerCase(Locale.ROOT) instead of toLowerCase().

Environment

Turkish-Locale tr_TR

Status

Assignee

Brett Meyer

Reporter

Onur Şahin

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Priority

Major