3334353637383940
@Override public User modify(User user) { em.find(User.class, user.getUserId()); User mergedUser = em.merge(user); return mergedUser; }
4041424344454647
} @Override public void delete(User user) { User mergedUser = em.merge(user); em.remove(mergedUser); }
4748495051525354
} @Override public User findById(String userId) { User user = em.find(User.class, userId); return user; }