mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user