Checkopoint added hql

This commit is contained in:
BuildTools
2020-11-17 19:36:56 +01:00
parent c34ce94fb0
commit 3e7086eab9
5 changed files with 71 additions and 5 deletions
buisnesslogic/src
main
java
test
java
com
plannaplan
restservice/src/main/java/com/plannaplan/controllers

@ -26,8 +26,7 @@ public class GroupService {
}
public Groups save(Groups group) {
this.repo.save(group);
return group;
return this.repo.save(group);
}
public void delete(Groups groups) {
@ -51,4 +50,9 @@ public class GroupService {
return Optional.empty();
}
public int getAssignedAmount(Long groupId) {
this.repo.getAssignedAmount(groupId);
return 0;
}
}

@ -31,8 +31,8 @@ public class UserService {
return token;
}
public void save(User user) {
this.repo.save(user);
public User save(User user) {
return this.repo.save(user);
}
public User getUserByEmail(String email) throws UserNotFoundException {