Commit 24e5d6785b136581f2adc44d10a6e520a636886d
1 parent
a90c1b4b
Add gitignore and a little hint
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
src/main/java/fr/plil/sio/examen/repositories/AnimalRepository.java
@@ -9,7 +9,8 @@ public interface AnimalRepository extends JpaRepository<Animal,Long> { | @@ -9,7 +9,8 @@ public interface AnimalRepository extends JpaRepository<Animal,Long> { | ||
9 | 9 | ||
10 | /** | 10 | /** |
11 | * NOTE: this is an important example to help you with the findByXXX methods | 11 | * NOTE: this is an important example to help you with the findByXXX methods |
12 | - * in the comment repository. | 12 | + * in the comment repository (hint: findByName works with a String, what |
13 | + * about other kind of object ?). | ||
13 | */ | 14 | */ |
14 | List<Animal> findByOwner(Owner owner); | 15 | List<Animal> findByOwner(Owner owner); |
15 | } | 16 | } |