All pastes #231130 Raw Edit

Untitled

public text v1 · immutable
#231130 ·published 2006-10-31 17:17 UTC
rendered paste body
	public void renameGenre(Integer id, String newName) {
		List songs = getSongsByGenreId(id);
		log.debug("Setting genre "+getGenreName(id)+"("+id+")  to " + newName);
		genres.set(id.intValue(), newName);
		for(Iterator songsI=songs.iterator(); songsI.hasNext(); ) {
			Song s = (Song)songsI.next();
			s.setGenre(newName);
		}