Model query for lastest version is broken

Description

Incorrect results are given when querying for models by key and lastest version.

See the junit test included, and the patched Model.xml file.

The fix is to remove the "RES" alias name from the inner-select for the "latest" where clause.

Environment

None

Assignee

Frederik Heremans

Reporter

Matt Nienow

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure