diff --git a/.gitignore b/.gitignore index f9e8bc1..53a78cd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ */target/ .idea/ */.idea/ +/target/ \ No newline at end of file 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 f38cdcd..5e4ecb7 100644 --- a/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java +++ b/src/main/java/fr/plil/sio/persistence/jdbc/UserRepositoryJdbc.java @@ -36,7 +36,7 @@ public class UserRepositoryJdbc implements UserRepository { stmt = dataSource.getConnection().createStatement(); rs = stmt.executeQuery("SELECT * FROM USER_T WHERE NAME_U = \'" + name + "\'"); if (rs.next()) { - logger.debug("found group " + name); + logger.debug("found user " + name); User user= new User(); user.setId(rs.getLong("USER_ID")); user.setName(rs.getString("NAME_U")); diff --git a/src/main/java/fr/plil/sio/persistence/jdbc/UserServiceJdbc.java b/src/main/java/fr/plil/sio/persistence/jdbc/UserServiceJdbc.java index 862f6c7..3df2c5e 100644 --- a/src/main/java/fr/plil/sio/persistence/jdbc/UserServiceJdbc.java +++ b/src/main/java/fr/plil/sio/persistence/jdbc/UserServiceJdbc.java @@ -22,7 +22,7 @@ public class UserServiceJdbc implements UserService { throw new IllegalStateException("a group with the same name already exists"); } user = new User(); - user.setName(name); + user.setName(name); userRepository.save(user); return user; } diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index 6901e9c..ceda8b0 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -1,4 +1,5 @@ logging.level.org.springframework=INFO logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate=INFO -spring.datasource.url=jdbc:h2:mem:persistence;TRACE_LEVEL_FILE=4 \ No newline at end of file +spring.datasource.url=jdbc:h2:mem:persistence;TRACE_LEVEL_FILE=4 +spring.datasource.maxActive=300 \ No newline at end of file -- libgit2 0.21.2