[
https://issues.apache.org/jira/browse/CAY-2624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrus Adamchik updated CAY-2624:
---------------------------------
Fix Version/s: 4.2.M1
4.1.B3
4.0.2
Affects Version/s: 4.2.M1
4.0.1
> 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.0.1, 4.1.B2, 4.2.M1
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Priority: Major
> Fix For: 4.0.2, 4.1.B3, 4.2.M1
>
>
> 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)