try { //access the DAO... } catch(Exception e) { if("nested exception is javax.persistence.OptimisticLockException".equals(e.getMessage())) //then it is a OptimisticLockException }
No comments:
Post a Comment