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

Column#getAlias logic incorrectly uses Dialect#getMaxAliasLength

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 4.1.11, 4.2.0.Final, 4.3.0.Beta1
    • Components: None
    • Labels:
      None
    • Environment:
      sybase155 or sybase157
      tested on Hibernate 4.1 and master
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      org.hibernate.test.annotations.collectionelement.CollectionElementTest#testSimpleElement

      Boy#favoriteFoods is a Map<String, Enum>. The following is inserted:
      "breakfast":PIZZA
      "lunch":KUNGPAOCHICKEN
      "dinner":SUSHI

      Debugging shows that the map keys and enum values are inserted as expected. However, when the Boy is queried, the following results:
      PIZZA:PIZZA
      KUNGPAOCHICKEN:KUNGPAOCHICKEN
      SUSHI:SUSHI

      Something db-specific is causing the enum values to be written as the map key.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                brmeyer Brett Meyer
                Reporter:
                brmeyer Brett Meyer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: