cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne git commit: missing EmbeddableAttribute in search results priority
Date Thu, 26 Jan 2017 13:21:39 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 19e2974f0 -> 6d7dbf01e


missing EmbeddableAttribute in search results priority


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/6d7dbf01
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/6d7dbf01
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/6d7dbf01

Branch: refs/heads/master
Commit: 6d7dbf01e0472bb90242711c416a7a5c6e0afaa7
Parents: 19e2974
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Thu Jan 26 16:21:31 2017 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Thu Jan 26 16:21:31 2017 +0300

----------------------------------------------------------------------
 .../apache/cayenne/modeler/action/FindAction.java  | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/6d7dbf01/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
----------------------------------------------------------------------
diff --git a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
index 068c737..4c036a8 100755
--- a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
+++ b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
@@ -65,14 +65,15 @@ public class FindAction extends CayenneAction {
      */
     private static final Map<Class<?>, Integer> PRIORITY_BY_TYPE = new HashMap<>();
     static {
-        PRIORITY_BY_TYPE.put(ObjEntity.class,         1);
-        PRIORITY_BY_TYPE.put(DbEntity.class,          2);
-        PRIORITY_BY_TYPE.put(ObjAttribute.class,      5);
-        PRIORITY_BY_TYPE.put(DbAttribute.class,       6);
-        PRIORITY_BY_TYPE.put(ObjRelationship.class,   7);
-        PRIORITY_BY_TYPE.put(DbRelationship.class,    8);
-        PRIORITY_BY_TYPE.put(QueryDescriptor.class,   9);
-        PRIORITY_BY_TYPE.put(Embeddable.class,        10);
+        PRIORITY_BY_TYPE.put(ObjEntity.class,          1);
+        PRIORITY_BY_TYPE.put(DbEntity.class,           2);
+        PRIORITY_BY_TYPE.put(ObjAttribute.class,       5);
+        PRIORITY_BY_TYPE.put(DbAttribute.class,        6);
+        PRIORITY_BY_TYPE.put(ObjRelationship.class,    7);
+        PRIORITY_BY_TYPE.put(DbRelationship.class,     8);
+        PRIORITY_BY_TYPE.put(QueryDescriptor.class,    9);
+        PRIORITY_BY_TYPE.put(Embeddable.class,         10);
+        PRIORITY_BY_TYPE.put(EmbeddableAttribute.class,11);
     }
 
     public static String getActionName() {


Mime
View raw message