@Transactional public List<Playlist> getAllLists( User user, boolean copySongs ) { List<MDOPlaylist> playlists = daoPlaylist.getAll( user.getLogin() ); List<Playlist> result = new ArrayList<Playlist>(); for ( MDOPlaylist mdoPlaylist : playlists ) { Playlist pl = new Playlist( mdoPlaylist, copySongs ); result.add( pl ); } return result; }