in hibernate/src/java/org/apache/fulcrum/security/hibernate/PersistenceHelperDefaultImpl.java [91:122]
public void updateEntity(SecurityEntity entity) throws DataBackendException
{
Transaction transaction = null;
try
{
Session session = retrieveSession();
transaction = session.beginTransaction();
session.update(entity);
transaction.commit();
transaction = null;
}
catch (HibernateException he)
{
if (he.getMessage().indexOf("Another object was associated with this id") > -1)
{
session.close();
updateEntity(entity);
}
else
{
throw new DataBackendException("updateEntity(" + entity + ")", he);
}
}
finally
{
if (transaction != null)
{
transaction.rollback();
}
}
}