* Register the user.
*/
@Transactional
public Users registerUser(String userName, String password, String name, String surname , int age, boolean admin)
{
Users user = new Users();
user.setUserName(userName);
user.setPassword(password);
user.setName(name);
user.setSurname(surname);
user.setAge(age);
user.setRegisterDate(CalendarUtil.getCurrentDate());
user.setAdmin(admin);
entityManager.persist(user);
return user;