@Transactional
  public PermissionEntity merge(PermissionEntity permissionEntity) {
    return entityManagerProvider.get().merge(permissionEntity);
  }
Create or updates a permission.

@param permissionEntity  entity to create or update
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PermissionDAO.java