Are entities cached in jpa by default ?

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-04-25T10:45:27Z Indexed on 2010/04/25 10:53 UTC
Read the original article Hit count: 237

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about jpa

Related posts about ejb3