cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [2/7] cayenne git commit: CAY-2467 New type-aware Property API - cgen
Date Thu, 27 Dec 2018 14:37:47 GMT
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 <stariy95@gmail.com>
Authored: Thu Dec 27 17:02:35 2018 +0300
Committer: Nikita Timofeev <stariy95@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();
             }
 


Mime
View raw message