9192939495969798
public void editShelf(Shelf shelf) throws PhotoAlbumException { try { em.merge(shelf); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
5051525354555657
try { em.persist(album); album.getShelf().addAlbum(album); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
7576777879808182
em.flush(); album.setShelf(parentShelf); } catch (Exception e) { parentShelf.addAlbum(album); throw new PhotoAlbumException(e.getMessage()); } }
9091929394959697
public void editAlbum(Album album) throws PhotoAlbumException { try { em.merge(album); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
6970717273747576
public void register(User user) throws PhotoAlbumException { try { em.persist(user); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
84858687888990919293
public User updateUser(User user) throws PhotoAlbumException { try { em.merge(user); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } userBean.refreshUser(); return userBean.getUser(); }
4849505152535455
public void addEvent(Event event) throws PhotoAlbumException { try { em.persist(event); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
6364656667686970
public void deleteEvent(Event event) throws PhotoAlbumException { try { em.remove(em.merge(event)); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }
7879808182838485
public void editEvent(Event event) throws PhotoAlbumException { try { em.merge(event); em.flush(); } catch (Exception e) { throw new PhotoAlbumException(e.getMessage()); } }