mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Reworked MapEntry schema for better cache performance.
Set Attribute entities to be not lazy. Additional AttributeService testing. Fixed DoubleAttributeImpl's declaration to implement DoubleAttribute. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -109,7 +109,7 @@ public class AttributeDAOHibernate extends HibernateDaoSupport implements
|
||||
{
|
||||
AttrQueryHelper helper = new AttrQueryHelperImpl();
|
||||
String predicate = query.getPredicate(helper);
|
||||
String fullQuery = "from MapEntryImpl me where me.map = :map and " + predicate;
|
||||
String fullQuery = "from MapEntryImpl me where me.key.map = :map and " + predicate;
|
||||
Query hQuery = getSession().createQuery(fullQuery);
|
||||
hQuery.setEntity("map", map);
|
||||
for (Map.Entry<String, String> param : helper.getParameters().entrySet())
|
||||
@@ -120,7 +120,7 @@ public class AttributeDAOHibernate extends HibernateDaoSupport implements
|
||||
List<Pair<String, Attribute>> result = new ArrayList<Pair<String, Attribute>>();
|
||||
for (MapEntry entry : hits)
|
||||
{
|
||||
result.add(new Pair<String, Attribute>(entry.getKey(), entry.getAttribute()));
|
||||
result.add(new Pair<String, Attribute>(entry.getKey().getKey(), entry.getAttribute()));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user