polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soelvs...@apache.org
Subject zest-java git commit: ZEST-118 EntityModel incorrectly defaulted to non-queryable if no Queryable annotation was defined
Date Wed, 02 Sep 2015 07:35:32 GMT
Repository: zest-java
Updated Branches:
  refs/heads/develop 4caa989e6 -> 7428740d2


ZEST-118 EntityModel incorrectly defaulted to non-queryable if no Queryable annotation was
defined


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/7428740d
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/7428740d
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/7428740d

Branch: refs/heads/develop
Commit: 7428740d2d55905512865e8ffb7d0eb32825d9c3
Parents: 4caa989
Author: Kent Sølvsten <soelvsten@apache.org>
Authored: Wed Sep 2 09:35:25 2015 +0200
Committer: Kent Sølvsten <soelvsten@apache.org>
Committed: Wed Sep 2 09:35:25 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/zest/runtime/entity/EntityModel.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/7428740d/core/runtime/src/main/java/org/apache/zest/runtime/entity/EntityModel.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/zest/runtime/entity/EntityModel.java b/core/runtime/src/main/java/org/apache/zest/runtime/entity/EntityModel.java
old mode 100644
new mode 100755
index 8079507..1a433dc
--- a/core/runtime/src/main/java/org/apache/zest/runtime/entity/EntityModel.java
+++ b/core/runtime/src/main/java/org/apache/zest/runtime/entity/EntityModel.java
@@ -16,7 +16,6 @@ package org.apache.zest.runtime.entity;
 
 import java.lang.reflect.Method;
 import java.util.List;
-import org.apache.zest.api.association.AssociationDescriptor;
 import org.apache.zest.api.common.ConstructionException;
 import org.apache.zest.api.common.MetaInfo;
 import org.apache.zest.api.common.Visibility;
@@ -32,7 +31,6 @@ import org.apache.zest.api.unitofwork.EntityCompositeAlreadyExistsException;
 import org.apache.zest.api.util.Annotations;
 import org.apache.zest.runtime.composite.CompositeMethodsModel;
 import org.apache.zest.runtime.composite.CompositeModel;
-import org.apache.zest.runtime.property.PropertyModel;
 import org.apache.zest.runtime.structure.ModuleUnitOfWork;
 import org.apache.zest.spi.entity.EntityState;
 import org.apache.zest.spi.entitystore.EntityAlreadyExistsException;
@@ -77,7 +75,7 @@ public final class EntityModel extends CompositeModel
             .filter( Annotations.isType( Queryable.class ) )
             .map( annot -> ( (Queryable) annot ).value() )
             .findFirst()
-            .orElse( false );
+            .orElse( true );
     }
 
     @Override


Mime
View raw message