@Transactional
  public AlertNoticeEntity merge(AlertNoticeEntity alertNotice) {
    return entityManagerProvider.get().merge(alertNotice);
  }
Merge the specified notification with the existing target in the database.

@param alertNotice
         the notification to merge (not {@code null}).
@return the updated notification with merged content (never {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java