You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/04/07 15:20:52 UTC
[11/14] incubator-usergrid git commit: call create with simple id
call create with simple id
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/3be95f98
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/3be95f98
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/3be95f98
Branch: refs/heads/USERGRID-533-create-app-test
Commit: 3be95f98d944ca87824f9d20915d544797987f08
Parents: 3ae2cbf
Author: Shawn Feldman <sf...@apache.org>
Authored: Mon Apr 6 18:22:18 2015 -0600
Committer: Shawn Feldman <sf...@apache.org>
Committed: Mon Apr 6 18:22:18 2015 -0600
----------------------------------------------------------------------
.../apache/usergrid/corepersistence/CpEntityManagerFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/3be95f98/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 f48f6e9..1be844d 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
@@ -275,7 +275,7 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application
Entity appInfo;
try {
- appInfo = managementEm.create(applicationId,CpNamingUtils.APPLICATION_INFO, appInfoMap);
+ appInfo = managementEm.create(new SimpleId(applicationId,CpNamingUtils.APPLICATION_INFO), appInfoMap);
} catch (DuplicateUniquePropertyExistsException e) {
throw new ApplicationAlreadyExistsException(appName);
}