We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3ddf61 commit 948fbc3Copy full SHA for 948fbc3
server/user/src/main/java/meet_at_mensa/user/UserRepository.java
@@ -2,10 +2,13 @@
2
3
// import CRUD repository (Create/Read/Update/Delete)
4
import org.springframework.data.repository.CrudRepository;
5
+import java.util.UUID;
6
7
// Interface UserRepository represents the userdb table
-public interface UserRepository extends CrudRepository<User, Integer> {
8
+public interface UserRepository extends CrudRepository<User, UUID> {
9
10
// This is auto-implemented by springboot into a userRepository Bean
11
12
+ // We only ever need to get users by the UUID, so no further functions need to be defined here
13
+
14
}
0 commit comments