Пример #1
0
  public List<Greeting> finAllGreetings() {

    return greetingRepository.findAll();
  }
Пример #2
0
 public Greeting findGreetingByName(String name) {
   return greetingRepository.findByName(name);
 }
Пример #3
0
  public Greeting findGreetingById(BigInteger id) {

    return greetingRepository.findOne(id);
  }
Пример #4
0
  public Greeting saveGreeting(Greeting greeting) {

    return greetingRepository.save(greeting);
  }