You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2014/10/13 20:29:13 UTC

git commit: Fixed UUID lookup bug

Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 265a258d9 -> c88282b08


Fixed UUID lookup bug


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/c88282b0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c88282b0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c88282b0

Branch: refs/heads/two-dot-o
Commit: c88282b089f659854666f84dc27948d62acf4d01
Parents: 265a258
Author: Todd Nine <to...@apache.org>
Authored: Mon Oct 13 12:29:10 2014 -0600
Committer: Todd Nine <to...@apache.org>
Committed: Mon Oct 13 12:29:10 2014 -0600

----------------------------------------------------------------------
 .../apache/usergrid/corepersistence/CpEntityManagerFactory.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c88282b0/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
index 5213bc2..4d296ba 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java
@@ -365,7 +365,10 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application
             return null;
         }
 
-        return entity.getUuid();
+
+        final UUID property = ( UUID ) entity.getProperty( "applicationUuid" );
+
+        return property;
 
 
         //        Query q = Query.fromQL( PROPERTY_NAME + " = '" + name + "'");