Repository: cayenne
Updated Branches:
  refs/heads/master 00d238645 -> 60bb7614d


clientclassgenextramapgen


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

Branch: refs/heads/master
Commit: d0c4f486ac35bd035cbd68561abb1da5b26cbade
Parents: 5043d7b
Author: olga <ollybondar...@gmail.com>
Authored: Thu Apr 14 16:54:24 2016 +0300
Committer: olga <ollybondar...@gmail.com>
Committed: Thu Apr 14 16:54:24 2016 +0300

----------------------------------------------------------------------
 .../org/apache/cayenne/gen/ClientClassGenerationAction.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/d0c4f486/cayenne-tools/src/main/java/org/apache/cayenne/gen/ClientClassGenerationAction.java
----------------------------------------------------------------------
diff --git 
a/cayenne-tools/src/main/java/org/apache/cayenne/gen/ClientClassGenerationAction.java
 
b/cayenne-tools/src/main/java/org/apache/cayenne/gen/ClientClassGenerationAction.java
index 0b9a555..f36fd68 100644
--- 
a/cayenne-tools/src/main/java/org/apache/cayenne/gen/ClientClassGenerationAction.java
+++ 
b/cayenne-tools/src/main/java/org/apache/cayenne/gen/ClientClassGenerationAction.java
@@ -66,11 +66,14 @@ public class ClientClassGenerationAction extends 
ClassGenerationAction {
             }
         }
     }
-    
+
     @Override
     public void addQueries(Collection<QueryDescriptor> queries) {
-        if (queries != null) {
-            artifacts.add(new ClientDataMapArtifact(dataMap, queries));
+        if (artifactsGenerationMode == ArtifactsGenerationMode.DATAMAP
+                || artifactsGenerationMode == ArtifactsGenerationMode.ALL) {
+            if (queries != null) {
+                artifacts.add(new ClientDataMapArtifact(dataMap, queries));
+            }
         }
     }
 }

Reply via email to