@Transactional
  public void update(ViewURLEntity entity) {
    entityManagerProvider.get().merge(entity);
    entityManagerProvider.get().flush();

  }
Update and merge a URL entity
@param entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ViewURLDAO.java