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

usergrid git commit: Allow name and any property set with aliasProperty to be changed.

Repository: usergrid
Updated Branches:
  refs/heads/master bafd46274 -> 3f819dc06


Allow name and any property set with aliasProperty to be changed.


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

Branch: refs/heads/master
Commit: 3f819dc0679f84edb57c52e69b58622417cfd59f
Parents: bafd462
Author: Michael Russo <ru...@google.com>
Authored: Wed May 17 13:50:10 2017 -0700
Committer: Michael Russo <ru...@google.com>
Committed: Wed May 17 13:50:10 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/usergrid/persistence/Schema.java     | 2 +-
 .../java/org/apache/usergrid/persistence/schema/PropertyInfo.java | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/3f819dc0/stack/core/src/main/java/org/apache/usergrid/persistence/Schema.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/persistence/Schema.java b/stack/core/src/main/java/org/apache/usergrid/persistence/Schema.java
index 6b8f139..87a9a51 100644
--- a/stack/core/src/main/java/org/apache/usergrid/persistence/Schema.java
+++ b/stack/core/src/main/java/org/apache/usergrid/persistence/Schema.java
@@ -1252,7 +1252,7 @@ public class Schema implements SchemaManager {
         property.setName( PROPERTY_NAME );
         property.setRequired( false );
         property.setType( String.class );
-        property.setMutable( false );
+        property.setMutable( true );
         property.setAliasProperty( true );
         property.setIndexed( true );
         property.setBasic( true );

http://git-wip-us.apache.org/repos/asf/usergrid/blob/3f819dc0/stack/core/src/main/java/org/apache/usergrid/persistence/schema/PropertyInfo.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/persistence/schema/PropertyInfo.java b/stack/core/src/main/java/org/apache/usergrid/persistence/schema/PropertyInfo.java
index c5d2d9c..14d5e30 100644
--- a/stack/core/src/main/java/org/apache/usergrid/persistence/schema/PropertyInfo.java
+++ b/stack/core/src/main/java/org/apache/usergrid/persistence/schema/PropertyInfo.java
@@ -142,9 +142,6 @@ public class PropertyInfo {
 
     public void setAliasProperty( boolean aliasProperty ) {
         this.aliasProperty = aliasProperty;
-        if ( aliasProperty ) {
-            mutable = false;
-        }
     }