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

@param entity  entity to persist
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PrivilegeDAO.java