mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Interim checkin for ListAttribute support.
Should fix build breakage also. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -87,4 +87,14 @@ public class MapEntryDAOHibernate extends HibernateDaoSupport implements
|
||||
{
|
||||
getSession().save(entry);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.attributes.MapEntryDAO#size(org.alfresco.repo.attributes.MapAttribute)
|
||||
*/
|
||||
public int size(MapAttribute mapAttr)
|
||||
{
|
||||
Query query = getSession().createQuery("select count() from MapEntryImpl me where me.map = :map");
|
||||
query.setEntity("map", mapAttr);
|
||||
return (Integer)query.uniqueResult();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user