Column#getAlias logic incorrectly uses Dialect#getMaxAliasLength

Description

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

Boy#favoriteFoods is a Map<String, Enum>. The following is inserted:
"breakfast"IZZA
"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:
PIZZAIZZA
KUNGPAOCHICKEN:KUNGPAOCHICKEN
SUSHI:SUSHI

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

Environment

sybase155 or sybase157
tested on Hibernate 4.1 and master

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure