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

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