Solutionunvalidated
The SQL for the finder is always executed on the database. — default configuration for JPA is to flush the persistence context to the database before a finder ist executed. Tension: JPA doesn't have functionality to search the unflushed persistence context containing the in memory entities. Outcome: This is why default configuration for JPA is to flush the persistence context to the database before a finder ist executed.
be418c96-4ee9-45ea-adad-145802e21b89
The SQL for the finder is always executed on the database. — default configuration for JPA is to flush the persistence context to the database before a finder ist executed. Tension: JPA doesn't have functionality to search the unflushed persistence context containing the in memory entities. Outcome: This is why default configuration for JPA is to flush the persistence context to the database before a finder ist executed.