@Transactional
  public ViewEntity merge(ViewEntity ViewEntity) {
    return entityManagerProvider.get().merge(ViewEntity);
  }
Merge the state of the given entity into the current persistence context.

@param ViewEntity  entity to merge
@return the merged entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ViewDAO.java