Fixed permissions patch. Split hibernate and cache configuration property files

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2261 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-31 13:26:54 +00:00
parent 89abae6099
commit 6fa5688f5f
4 changed files with 10 additions and 8 deletions

View File

@@ -93,7 +93,7 @@ public class PermissionDataPatch extends AbstractPatch
getHibernateTemplate().save(ref);
createdNames.add(name);
}
}
}
return createdNames;
}
@@ -103,6 +103,9 @@ public class PermissionDataPatch extends AbstractPatch
{
public Object doInHibernate(Session session)
{
// flush any outstanding entities
session.flush();
Query query = session.getNamedQuery(HibernateHelper.QUERY_UPDATE_PERM_ENTRY_TYPENAME);
query.setString("typeNameNew", TYPE_NAME_NEW)
.setString("typeNameOld", TYPE_NAME_OLD);