Uploaded image for project: 'Hibernate ORM'
  1. HHH-9722

toLowerCase() still causes bugs in Turkish locale

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.10, 5.0.0.Beta2
    • Component/s: None
    • Labels:
    • Environment:
      Turkish-Locale tr_TR

      Description

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

      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().

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: