episodeDao.persist(episode);
return episode;
}
public PublicTag addTag(Podcast podcast, String tagTitle) {
PublicTag tag = publicTagDao.getByTitle(tagTitle);
if (tag == null) {
tag = new PublicTag();
tag.setTitle(tagTitle);
}
tag.getPodcasts().add(podcast);
publicTagDao.persist(tag);
return tag;
}