Package javax.persistence

Examples of javax.persistence.Cache.evict()


          if (associated == null) {continue;}
          Class<?> associatedClazz = associated.getClass();
          Method idGetter = associatedClazz.getDeclaredMethod("getId");
          EntityManagerFactory emf = em.getEntityManagerFactory();
          Cache emfCache = emf.getCache();
          emfCache.evict(associated.getClass(), idGetter.invoke(associated));
        } catch (Exception e) {
          log.warn("Error", e);
        }
      }
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.