예제 #1
0
 @Override
 public List<Monument> getAll() {
   try {
     return repo.getAll();
   } catch (RepositoryException e) {
     e.printStackTrace();
   }
   return null;
 }
예제 #2
0
 @Override
 public Monument insertMonument(Monument Monument) {
   try {
     return repo.save(Monument);
   } catch (RepositoryException e) {
     e.printStackTrace();
   }
   return Monument;
 }
예제 #3
0
 @Override
 public boolean isMonument(int graveId) {
   try {
     if (repo.getById(graveId) != null) {
       return true;
     }
     return false;
   } catch (RepositoryException e) {
     return false;
   }
 }