mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12185: Fix 3.0 SP1 installation on non-Oracle databases. Removed creation of indexes in AlfrescoPostCreate-2.2-MappedFKIndexes.sql that were also in AlfrescoPostCreate-2.2-Extra.sql 12186: Performance improvements to HibernateNodeDaoServiceImpl 12188: Multi user tests: enable graceful web script recovery on optimistic locking failure (...) 12191: Improve Javascript execution performance in Web Scripts & Improve error presentation (...) thrown by JavaScript 12192: Share performance improvements: stop AbstractFeedGenerator from 'choking' the repository with too many web script requests 12193: Multi user testing: don't suppress all exceptions during Wiki Move. 12194: Multi user testing. Don't suppress all runtime exceptions in script site node object. 12195: Multi user testing. Convert User bean object to use a retrying transaction so that optimistic locking failures are handled. 12196: Multi user testing: Configuration changes to support concurrent access by 20 users git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12522 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -5,6 +5,7 @@ import java.util.Date;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.domain.AuditableProperties;
|
||||
import org.alfresco.repo.domain.Node;
|
||||
import org.alfresco.repo.domain.QNameDAO;
|
||||
import org.alfresco.repo.domain.Server;
|
||||
@@ -549,7 +550,9 @@ public class HibernateSessionHelperTest extends BaseSpringTest
|
||||
node.setTypeQNameId(typeQNameId);
|
||||
node.setTransaction(transaction);
|
||||
node.setDeleted(false);
|
||||
node.getAuditableProperties().setAuditValues("system", new Date(), false);
|
||||
AuditableProperties ap = new AuditableProperties();
|
||||
node.setAuditableProperties(ap);
|
||||
ap.setAuditValues("system", new Date(), false);
|
||||
getSession().save(node);
|
||||
|
||||
return node;
|
||||
|
@@ -82,7 +82,8 @@ public class NodeImpl extends LifecycleAdapter implements Node, Serializable
|
||||
|
||||
aspects = new HashSet<Long>(5);
|
||||
properties = new HashMap<PropertyMapKey, NodePropertyValue>(5);
|
||||
auditableProperties = new AuditableProperties();
|
||||
// Note auditableProperties starts null, as hibernate maps a component containing nulls to null and this would
|
||||
// cause a lot of dirty checks to fail!
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -355,6 +356,6 @@ public class NodeImpl extends LifecycleAdapter implements Node, Serializable
|
||||
|
||||
public void setAuditableProperties(AuditableProperties auditableProperties)
|
||||
{
|
||||
this.auditableProperties = (auditableProperties == null ? new AuditableProperties() : auditableProperties);
|
||||
this.auditableProperties = auditableProperties;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user