Beispiel #1
0
 @SuppressWarnings("unchecked")
 public static <T> T get(Class<T> entityType, Object idValue) {
   return (T) cache.get(entityType.getName() + "#" + idValue);
 }
Beispiel #2
0
 public static <T> void put(Class<T> entityType, Object idValue, Object entity) {
   cache.put(entityType.getName() + "#" + idValue, entity);
 }