mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-434: Cluster-wide Locking Service
- DAO and unit tests (MOB-436) - MySQL and Derby scripts (MOB-438) - TODO: Oracle, PostgreSQL and SQLServer for Enterprise - TOD0: Wrap lock wait and lock retry behaviour git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -169,7 +169,9 @@ public class HibernateQNameDAOImpl extends HibernateDaoSupport implements QNameD
|
||||
NamespaceEntity namespace = new NamespaceEntityImpl();
|
||||
namespace.setUri(namespaceUri);
|
||||
// Persist
|
||||
Long id = (Long) getSession().save(namespace);
|
||||
Session session = getSession();
|
||||
Long id = (Long) session.save(namespace);
|
||||
DirtySessionMethodInterceptor.flushSession(session, true);
|
||||
// Cache it
|
||||
namespaceEntityCache.put(id, namespaceUri);
|
||||
namespaceEntityCache.put(namespaceUri, id);
|
||||
|
Reference in New Issue
Block a user