Skip to content

use @Postcontruct jpa first level cache didn't work #3596

@chixiaopao

Description

@chixiaopao

When I use a for loop in the method annotated by Postcontruct to query the value in the database. After the first query value, then manually modify the database value, the result of the second loop query is not the value in the cache.

I think the jpa first-level cache should take effect, but I don’t know why it failed. Can anyone give me an answer?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions