Esempio n. 1
0
 /**
  * @see {@link Entities#get(Object)
  * @see {@link CascadingTx}
  */
 @SuppressWarnings("unchecked")
 @Deprecated
 public static <T> EntityWrapper<T> get(final T obj) {
   return new EntityWrapper(Entities.lookatPersistenceContext(obj));
 }
Esempio n. 2
0
 /**
  * @see {@link Entities#get(Class)
  * @see {@link CascadingTx}
  */
 @Deprecated
 public static <T> EntityWrapper<T> get(final Class<T> type) {
   return new EntityWrapper(Entities.lookatPersistenceContext(type));
 }