jpa - EntityManager.find() doesnt get Database changes -


i'm working on java ee webapplikation. use jpa database persistent.

i saw, have corrupt data in table reason application kept crashing. after deleted or changed corrupt data manually application still crashed. read reason connection-pool caches old data , forces "new load" after pool timeout.

i used google couldn't find answer. there way how can force "new load" of jpa after changed data manually?

my facade

@stateless public class myfacade extends abstractfacade<mymodel> {      @persistencecontext(unitname = "snapshot")     private entitymanager em;      @override     protected entitymanager getentitymanager() {         return em;     }      public myfacade () {         super(mymodel.class);     } } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -