Are entities cached in jpa by default ?
- by Nitesh Panchal
Hello,
I add entity to my database and it works fine. But when i retrieve the List, i get the old entity, the new entities i add are not shown until i undeploy the application and redeploy it again. This means are my entities cached by default? But, I haven't made any settings for caching entities in my persistence.xml or any such file.
I have even tried calling flush(), refresh() and merge(). But still it shows the old entities only. Am i missing something? Please help me.