diff --git a/backend/src/main/java/ovh/herisson/Clyde/Repositories/TokenRepository.java b/backend/src/main/java/ovh/herisson/Clyde/Repositories/TokenRepository.java new file mode 100644 index 0000000..2fad5f0 --- /dev/null +++ b/backend/src/main/java/ovh/herisson/Clyde/Repositories/TokenRepository.java @@ -0,0 +1,7 @@ +package ovh.herisson.Clyde.Repositories; + +import org.springframework.data.repository.CrudRepository; +import ovh.herisson.Clyde.Tables.Token; + +public interface TokenRepository extends CrudRepository { +} diff --git a/backend/src/main/java/ovh/herisson/Clyde/Repositories/UserRepository.java b/backend/src/main/java/ovh/herisson/Clyde/Repositories/UserRepository.java index 38f9ae0..af2bd08 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Repositories/UserRepository.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Repositories/UserRepository.java @@ -10,6 +10,8 @@ public interface UserRepository extends CrudRepository { User findById(long id); + User findByEmail(String email); + /** @Query(value = "select a.* from Users a ",nativeQuery = true) Iterable findAllUsers();**/