@Transactional
  public void create(UpgradeEntity entity) {
    EntityManager entityManager = entityManagerProvider.get();
    entityManager.persist(entity);
  }
Creates the upgrade entity in the database
@param entity the entity
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/UpgradeDAO.java