Signed-off-by: Roland Häder <roland@mxchange.org>
// Try to find the contact
Contact foundContact = this.getEntityManager().find(user.getUserContact().getClass(), user.getUserContact().getContactId());
- // Merge the contact to get a detached object back
- Contact detachedContact = this.getEntityManager().merge(foundContact);
-
// Set detached object in rexcruiter instance
- user.setUserContact(detachedContact);
+ user.setUserContact(foundContact);
// Set timestamp
user.setUserCreated(new GregorianCalendar());