Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
PT-2640-entities: Using local serializer instead of full+split.
Browse files Browse the repository at this point in the history
  • Loading branch information
itaiGershtansky authored and sdumitriu committed Feb 24, 2017
1 parent 4a0ee73 commit 5762c59
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -110,8 +110,7 @@ public Collection<E> getMembersOfType(G group, EntityReference type)

Query q = getQueryManager().createQuery(hql.toString(), Query.HQL);

// FIXME
q.bindValue("selfReference", getFullSerializer().serialize(group.getDocument()).split(":")[1]);
q.bindValue("selfReference", getLocalSerializer().serialize(group.getDocument()));
q.bindValue("referenceProperty", getMembershipProperty());
q.bindValue("memberClass", getLocalSerializer().serialize(GROUP_MEMBER_CLASS));
if (type != null) {
Expand Down Expand Up @@ -251,8 +250,7 @@ protected Map<String, Map<String, String>> getMembersMap(G group, EntityReferenc

Query q = getQueryManager().createQuery(hql.toString(), Query.HQL);

// FIXME
q.bindValue("selfReference", getFullSerializer().serialize(group.getDocument()).split(":")[1]);
q.bindValue("selfReference", getLocalSerializer().serialize(group.getDocument()));
q.bindValue("memberClass", getLocalSerializer().serialize(GROUP_MEMBER_CLASS));
q.bindValue("entityType", getLocalSerializer().serialize(type));
q.bindValue("referenceProperty", getMembershipProperty());
Expand Down

0 comments on commit 5762c59

Please sign in to comment.