diff --git a/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java b/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java index 5e4ecb7..3da956f 100644 --- a/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java +++ b/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java @@ -73,6 +73,7 @@ public class UserRepositoryJdbc implements UserRepository { rs = stmt.getGeneratedKeys(); if (rs.next()) { user.setId(rs.getLong(1)); + } else { throw new UnsupportedOperationException("default in key access"); } -- libgit2 0.21.2