Do native queries in JPA 2.0 bypass the first level cache?
-
04-12-2019 - |
Pregunta
I am new to OpenJPA, and I am wondering if calling a native query will bypass the first level cache and go straight to the database.
Solución
A Native query can be for any table in the datastore ... whether Entity-based or not. The L1 cache, in general, has nothing to do with this process, except when your result class for your query is an Entity.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow