@Transactional
  public void create(ViewEntity ViewEntity) {
    entityManagerProvider.get().persist(ViewEntity);
  }
Make an instance managed and persistent.

@param ViewEntity  entity to store
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ViewDAO.java