tuxmartin

"Bezpecne" DAO

Apr 28th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. // DAO
  2.  
  3. public void remove(User persistentInstance) {
  4.     log.debug("removing User instance");
  5.     try {
  6.         entityManager.remove(persistentInstance);
  7.         log.debug("remove successful");
  8.     } catch (RuntimeException re) {
  9.         log.error("remove failed", re);
  10.         throw re;
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment