hibernate/src/java/org/apache/fulcrum/security/hibernate/basic/HibernateModelManagerImpl.java [72:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                session.update(user);
                session.update(group);
                transaction.commit();
                transaction = null;
            }
        }
        catch (Exception e)
        {
            throw new DataBackendException("grant(Role,Permission) failed", e);
        }
        finally
        {
            if (transaction != null)
            {
                transaction.rollback();
            }
        }
        if (!groupExists)
        {
            throw new UnknownEntityException("Unknown group '" + group.getName() + "'");
        }
        if (!userExists)
        {
            throw new UnknownEntityException("Unknown user '" + user.getName() + "'");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hibernate/src/java/org/apache/fulcrum/security/hibernate/basic/HibernateModelManagerImpl.java [127:150]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                session.update(user);
                session.update(group);
                transaction.commit();
                transaction = null;
            }
        }
        catch (Exception e)
        {
            throw new DataBackendException("grant(Role,Permission) failed", e);
        }
        finally
        {
            if (transaction != null)
            {
                transaction.rollback();
            }
        }
        if (!groupExists)
        {
            throw new UnknownEntityException("Unknown group '" + group.getName() + "'");
        }
        if (!userExists)
        {
            throw new UnknownEntityException("Unknown user '" + user.getName() + "'");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



