throw new IllegalStateException(MessageFormat.format("detachedBranchOffice.branchId ={0} is not valid.", detachedBranchOffice.getBranchId())); //NOI18N
}
- // Set updated timestamp
- detachedBranchOffice.setBranchEntryUpdated(new Date());
-
// Get contact from it and find it
final BranchOffice foundBranchOffice = this.getEntityManager().find(detachedBranchOffice.getClass(), detachedBranchOffice.getBranchId());
// Merge contact instance
final BranchOffice managedBranchOffice = this.getEntityManager().merge(foundBranchOffice);
+ // Set updated timestamp
+ managedBranchOffice.setBranchEntryUpdated(new Date());
+
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeBranchOfficeData: managedBranchOffice={0} - EXIT!", managedBranchOffice)); //NOI18N
throw new IllegalStateException(MessageFormat.format("detachedContact.contactId={0} is not valid.", detachedContact.getContactId())); //NOI18N
}
- // Set updated timestamp
- detachedContact.setContactEntryUpdated(new Date());
-
// Get contact from it and find it
final Contact foundContact = this.createManaged(detachedContact);
// Merge contact instance
final Contact managedContact = this.getEntityManager().merge(foundContact);
+ // Set updated timestamp
+ managedContact.setContactEntryUpdated(new Date());
+
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeContactData: managedContact={0} - EXIT!", managedContact)); //NOI18N
throw new IllegalStateException(MessageFormat.format("detachedDepartment.departmentId ={0} is not valid.", detachedDepartment.getDepartmentId())); //NOI18N
}
- // Set updated timestamp
- detachedDepartment.setDepartmentEntryUpdated(new Date());
-
// Get contact from it and find it
final Department foundDepartment = this.createManaged(detachedDepartment);
// Merge contact instance
final Department managedDepartment = this.getEntityManager().merge(foundDepartment);
+ // Set updated timestamp
+ managedDepartment.setDepartmentEntryUpdated(new Date());
+
// Trace message
this.getLoggerBeanLocal().logTrace(MessageFormat.format("mergeDepartmentData: managedDepartment={0} - EXIT!", managedDepartment)); //NOI18N