There seems to be a slight bug in the query parser which doesn't set
cumTra as an aliasName, but I'm not sure of it.
Try the
Code:
from fr.testTra as cumTra
structure.
Hibernate guys,
in n.s.h.hql.FromParser#token method in
Code:
else if (afterIn) {
...
if (afterClass) {
I think you must add an
Code:
q.setAliasName(alias, ?);
as it is in the previous section
Code:
if ( afterAs || expectingAs ) {
if (entityName!=null) {
q.setAliasName(token, entityName);
}
Because locks by alias use the undelying QueryTranslator.aliasNames Map to match.
Emmanuel