예제 #1
0
 @Override
 @Transactional
 public void delete(Genre foundGenre) {
   genreRepository.delete(foundGenre);
 }
예제 #2
0
 @Override
 @Transactional
 public Genre findGenreById(String id) {
   return genreRepository.findOne(Long.parseLong(id));
 }
예제 #3
0
 @Override
 @Transactional
 public Genre save(Genre genre) {
   return genreRepository.save(genre);
 }
예제 #4
0
 @Override
 @Transactional
 public List<Genre> findAllGenres() {
   return genreRepository.findAll();
 }