예제 #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);
  }