@Transactional
  public ResourceTypeEntity merge(ResourceTypeEntity entity) {
    return entityManagerProvider.get().merge(entity);
  }
Merge the given entity.

@param entity  the entity

@return the managed entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ResourceTypeDAO.java