learn-katacoda icon indicating copy to clipboard operation
learn-katacoda copied to clipboard

FruitRepository must contain the method findById

Open kotlincook opened this issue 3 years ago • 2 comments

Although the FruitRepository class extends from CrudRepository, it must still contain the following methods:

public interface FruitRepository extends CrudRepository<Fruit, Integer> {
    Optional<Fruit> findById(int id);
    void deleteById(int id);
    boolean existsById(int id);
}

kotlincook avatar Mar 21 '21 20:03 kotlincook

Thanks @kotlincook ! Will work on that, or would you mind sending a PR? :)

blues-man avatar Mar 23 '21 13:03 blues-man

This was a Spring version update issue which has been fixed in the latest Spring courses. Except Spring Messaging and Spring Monitoring (which are in-progress), all other Spring courses should be working fine now. @kotlincook could you pls re-run the course you hit this in and confirm if the issue is resolved?

dewan-ahmed avatar Jun 25 '21 05:06 dewan-ahmed