Skip to content

Commit 948fbc3

Browse files
fix: corrected repository to accurately reflect UUID as ID
1 parent a3ddf61 commit 948fbc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/user/src/main/java/meet_at_mensa/user/UserRepository.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
// import CRUD repository (Create/Read/Update/Delete)
44
import org.springframework.data.repository.CrudRepository;
5+
import java.util.UUID;
56

67
// Interface UserRepository represents the userdb table
7-
public interface UserRepository extends CrudRepository<User, Integer> {
8+
public interface UserRepository extends CrudRepository<User, UUID> {
89

910
// This is auto-implemented by springboot into a userRepository Bean
1011

12+
// We only ever need to get users by the UUID, so no further functions need to be defined here
13+
1114
}

0 commit comments

Comments
 (0)