@Override public String findUserFullNameBy(int userId) { UserInformation userInformation = entityManager.find(UserInformation.class, userId); return userInformation.getName(); }
@Override public void insert(User user, UserInformation information) { user.setUserInformation(information); information.setUser(user); entityManager.merge(user); }