// lookup existing user & set a currently null child entity (ContactInfo)
user.setContactInfo(contactInfo);
// update the user in the datastore with newly created child Entity
entityManager.persist(user);
Generates exception:
javax.persistence.EntityExistsException: User@b3089 is already persistent
Since the user already exists, is there some other method besides entityManager.persist
that I should be using for an update instead of an insert?