Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findMap() does not use/hit natural key cache #1876

Closed
rbygrave opened this issue Dec 2, 2019 · 0 comments
Closed

findMap() does not use/hit natural key cache #1876

rbygrave opened this issue Dec 2, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@rbygrave
Copy link
Member

rbygrave commented Dec 2, 2019

Steps to reproduce

Entity bean with @Cache with naturalKey

@Cache(nearCache = true, naturalKey = {"app", "key"})
@Entity
@Table(name = "app_metric")
public class DMetric extends BaseDomain {

Query with `findMap()' that ought to use the natural key cache

    return new QDMetric()
      .app.eq(header.getApp())
      .key.in(keys)
      .key.asMapKey()
      .setUseCache(true)
      .findMap();

If the above query was findList() it hits the natural key cache but findMap() does not.

@rbygrave rbygrave added the bug label Dec 2, 2019
@rbygrave rbygrave added this to the 12.1.5 milestone Dec 2, 2019
@rbygrave rbygrave self-assigned this Dec 2, 2019
@rbygrave rbygrave closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant