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

StringHelper.generateAliasRoot() should allow characters that are valid xml for EntityMode.DOM4J

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Rejected
    • Affects versions: 3.1.2
    • Fix versions: None
    • Components: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      With the following scenario
      <class>
      ....
      <list name="al-ist">
      <key>
      <column name="parent_id"/>
      </key>
      <list-index column="_index"/>
      <one-to-many class="....childClass"/>
      </list>
      </class>

      This table gets created correctly with a relationship to the childClass table, however, when I do a select the generated sql uses the name "al-ist" an fails due to incorrect sql. Charactes such as $ gets removed in the generateAliasRoot() method of StringHelper. Shouldn't "-" be handled in the same way.

      I could be wrong, so please advise if there is a workaround.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: