Andrus Adamchik created CAY-2624:
------------------------------------
Summary: SelectQuery "having" qualifier is not considered when
calculating cache key
Key: CAY-2624
URL: https://issues.apache.org/jira/browse/CAY-2624
Project: Cayenne
Issue Type: Bug
Affects Versions: 4.1.B2
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Here is the failing test demonstrating the problem. query "Having" part must be
included in the cache key , just like all the other parts.
{noformat}
SelectQuery<Artist> q1 = new SelectQuery<>(Artist.class);
q1.setCacheStrategy(QueryCacheStrategy.LOCAL_CACHE);
q1.setHavingQualifier(ExpressionFactory.expFalse());
SelectQuery<Artist> q3 = new SelectQuery<>(Artist.class);
q3.setCacheStrategy(QueryCacheStrategy.LOCAL_CACHE);
q3.setHavingQualifier(ExpressionFactory.expTrue());
assertNotEquals(q1.getMetaData(resolver).getCacheKey(),
q3.getMetaData(resolver).getCacheKey());
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)