@Transactional
  public E merge(E entity) {
    return entityManagerProvider.get().merge(entity);
  }
Updates entity.

@param entity entity to update
@return updated entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/CrudDAO.java