cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Владимир Сухинин <suhininvladi...@gmail.com>
Subject Re: Queries with joins and entity qualifiers are broken in cayenne-3.1.2
Date Tue, 12 Dec 2017 12:35:46 GMT
I hope this information will help you.
The problem seems to be somewhere around there:

at org.apache.cayenne.access.trans.JoinStack.appendJoinSubtree(Appendable,
JoinTreeNode)
178: qualifierTranslator.doAppendPart(dbQualifier);

where dbQualifier is our qualifier.
It goes down to

org.apache.cayenne.access.trans.QueryAssemblerHelper.processColumnWithQuoteSqlIdentifiers(DbAttribute
dbAttr, Expression pathExp)
294: String alias = (queryAssembler.supportsTableAliases()) ? queryAssembler
295:                .getCurrentAlias() : null;

returns root table alias (usually "t0") instead of joined table ("t1" or
other), if pathExp was matchDbExp

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message