Skip to content

Using @NaturalId for cache #2315

Open
Open
@jhhong0509

Description

@jhhong0509

I'm using @NaturalId annotation in my User.email.
I expected that my findByEmail(String email) would enable to search in first level cache or second level cache.
But in log, cache does not work as I think.
Every findByEmail method were access DB.

I used bySimpleNaturalId() for my purpose, but it's very hassle.
Please make @NaturalId access to cache enable

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: blockedAn issue that's blocked on an external project change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions