Miscellany
public unlisted java v1 · immutablepublic boolean deleteBox(Long id){ Boxes box = entityManager.find(Boxes.class, id); if(box != null){ try { entityManager.remove(box); return true; } catch(IllegalArgumentException e) { System.out.println(e); return false; } catch(TransactionRequiredException e) { System.out.println(e); return false; } }else{ return false; } }