agave-metadata/metadata-core/src/test/java/org/iplantc/service/metadata/dao/AbstractMetadataPermissionDaoIT.java
/**
     * Clears all permissions in the given table
     * @throws Exception
     */
Clears all permissions in the given table
@throws Exception
Clears all permissions in the given table @throws Exception
private void clearPermissions() throws Exception {
        Session session = null;
        try
        {
            HibernateUtil.beginTransaction();
            session = HibernateUtil.getSession();
            session.clear();
            HibernateUtil.disableAllFilters();
            session.createQuery("delete MetadataSchemaPermission").executeUpdate();
        }
        catch (HibernateException ex)
        {
            throw new MetadataQueryException(ex);
        }
        finally
        {
            try {
                if (session != null) {
                    session.close();
                }
            } catch (Exception ignore) {}
        }
    }
private void clearPermissions ( ) throws Exception { Session session = null ; try { HibernateUtil . beginTransaction ( ) ; session = HibernateUtil . getSession ( ) ; session . clear ( ) ; HibernateUtil . disableAllFilters ( ) ; session . createQuery ( "delete MetadataSchemaPermission" ) . executeUpdate ( ) ; } catch ( HibernateException ex ) { throw new MetadataQueryException ( ex ) ; } finally { try { if ( session != null ) { session . close ( ) ; } } catch ( Exception ignore ) { } } }
Clears all permissions in the given table
 @throws Exception
Clears all permissions in the given table @throws Exception
//noinspection JpaQlInspection