mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.0 to HEAD
5491: AWC-1154 WCM Workflows 5507, 5511: AVMGuidPatch git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
won't cause violations in the db during saves. -->
|
||||
<property name="versionID" type="int" column="version_id"
|
||||
not-null="true"/>
|
||||
<property name="guid" type="string" length="36" column="guid" not-null="true"/>
|
||||
<property name="guid" type="string" length="36" column="guid"/>
|
||||
<component name="basicAttributes" class="BasicAttributesImpl">
|
||||
<property name="creator" type="string" not-null="true"/>
|
||||
<property name="owner" type="string" not-null="true"/>
|
||||
|
@@ -172,4 +172,15 @@ class AVMNodeDAOHibernate extends HibernateDaoSupport implements
|
||||
{
|
||||
getSession().flush();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.avm.AVMNodeDAO#getEmptyGUIDS(int)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<AVMNode> getEmptyGUIDS(int count)
|
||||
{
|
||||
Query query = getSession().createQuery("from AVMNodeImpl an where an.guid is null");
|
||||
query.setMaxResults(count);
|
||||
return (List<AVMNode>)query.list();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user