You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2018/12/27 14:37:47 UTC

[2/7] cayenne git commit: CAY-2467 New type-aware Property API - cgen

CAY-2467 New type-aware Property API
  - cgen


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

Branch: refs/heads/master
Commit: c98d835e8274734f9ffc46779d6916e7b5d28a9e
Parents: 9934fe4
Author: Nikita Timofeev <st...@gmail.com>
Authored: Thu Dec 27 17:02:35 2018 +0300
Committer: Nikita Timofeev <st...@gmail.com>
Committed: Thu Dec 27 17:02:35 2018 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/cayenne/gen/PropertyUtils.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/c98d835e/cayenne-cgen/src/main/java/org/apache/cayenne/gen/PropertyUtils.java
----------------------------------------------------------------------
diff --git a/cayenne-cgen/src/main/java/org/apache/cayenne/gen/PropertyUtils.java b/cayenne-cgen/src/main/java/org/apache/cayenne/gen/PropertyUtils.java
index 90f4e89..4d45db6 100644
--- a/cayenne-cgen/src/main/java/org/apache/cayenne/gen/PropertyUtils.java
+++ b/cayenne-cgen/src/main/java/org/apache/cayenne/gen/PropertyUtils.java
@@ -256,7 +256,7 @@ public class PropertyUtils {
                 return MapProperty.class.getName();
             }
 
-            if (java.util.List.class.getName().equals(collectionType)) {
+            if (java.util.List.class.getName().equals(collectionType) || java.util.Collection.class.getName().equals(collectionType)) {
                 return ListProperty.class.getName();
             }