@Transactional
public void updateUserInfo(int userId, String name, String surname, int age, String userName, String password)
{
logger.debug("Updating user with id : " + userId);
User user = this.entityManager.find(User.class, userId);
user.setName(name);
user.setSurname(surname);
user.setAge(age);
user.setUserName(userName);
user.setPassword(password);
}