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.

¿Fue útil?

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
scroll top