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
Post a Comment