CriteriaQuery - Unable to sort by composite-id

Description

When trying to add a order for a composite-id using criteria queries the alias is removed only for the last property and a invalid query is created.

Cause: Order.ToSqlString -> NHibernate.Util.StringHelper.RemoveAsAliasesFromSql(produced); -> sql.Substring(0, sql.LastIndexOfCaseInsensitive(" as "));

Environment

None

Assignee

Unassigned

Reporter

stanislav merovic

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure