コード例 #1
0
 @Override
 public List<ArtWork> findAll() {
   List<ArtWork> allsubjects = new ArrayList<>();
   Iterable<ArtWork> subjects = repository.findAll();
   for (ArtWork subject : subjects) {
     allsubjects.add(subject);
   }
   return allsubjects;
 }
コード例 #2
0
 @Override
 public void delete(ArtWork entity) {
   repository.delete(entity);
 }
コード例 #3
0
 @Override
 public ArtWork update(ArtWork entity) {
   return repository.save(entity);
 }
コード例 #4
0
 @Override
 public ArtWork save(ArtWork mus) {
   return repository.save(mus);
 }
コード例 #5
0
 @Override
 public ArtWork findById(Long id) {
   return repository.findOne(id);
 }