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