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

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Divan Mostert

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure