From 6a39464f615a0eb90cef4879022eba60c79236db Mon Sep 17 00:00:00 2001 From: Bartha Maxime <231026@umons.ac.be> Date: Wed, 6 Mar 2024 17:34:18 +0100 Subject: [PATCH] /bin/bash: line 1: q: command not found --- .../ovh/herisson/Clyde/Repositories/TokenRepository.java | 7 +++++++ .../ovh/herisson/Clyde/Repositories/UserRepository.java | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 backend/src/main/java/ovh/herisson/Clyde/Repositories/TokenRepository.java 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();**/