You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by sk...@apache.org on 2015/04/03 14:56:03 UTC
cayenne git commit: CAY-1999 | Unneeded Property import for
superclasses with no properties
Repository: cayenne
Updated Branches:
refs/heads/master de147692a -> c38a8e6b8
CAY-1999 | Unneeded Property import for superclasses with no properties
Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/c38a8e6b
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/c38a8e6b
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/c38a8e6b
Branch: refs/heads/master
Commit: c38a8e6b8eb9881dfd5c086be570be5716bc6ab0
Parents: de14769
Author: Savva Kolbachev <s....@gmail.com>
Authored: Fri Apr 3 15:55:05 2015 +0300
Committer: Savva Kolbachev <s....@gmail.com>
Committed: Fri Apr 3 15:55:05 2015 +0300
----------------------------------------------------------------------
.../src/main/resources/templates/v1_2/client-superclass.vm | 2 ++
.../src/main/resources/templates/v1_2/embeddable-singleclass.vm | 2 ++
.../src/main/resources/templates/v1_2/embeddable-superclass.vm | 2 ++
cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm | 2 ++
cayenne-tools/src/main/resources/templates/v1_2/superclass.vm | 2 ++
docs/doc/src/main/resources/RELEASE-NOTES.txt | 1 +
6 files changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/cayenne-tools/src/main/resources/templates/v1_2/client-superclass.vm
----------------------------------------------------------------------
diff --git a/cayenne-tools/src/main/resources/templates/v1_2/client-superclass.vm b/cayenne-tools/src/main/resources/templates/v1_2/client-superclass.vm
index da0b527..b723bf1 100644
--- a/cayenne-tools/src/main/resources/templates/v1_2/client-superclass.vm
+++ b/cayenne-tools/src/main/resources/templates/v1_2/client-superclass.vm
@@ -36,7 +36,9 @@
${importUtils.setPackage($superPackageName)}##
${importUtils.addReservedType("${$superPackageName}.${superClassName}")}##
${importUtils.addType("${basePackageName}.${baseClassName}")}##
+#if(${object.DeclaredAttributes} and !${object.DeclaredAttributes.isEmpty()})
${importUtils.addType('org.apache.cayenne.exp.Property')}##
+#end
#foreach( $attr in ${object.DeclaredAttributes} )
$importUtils.addType(${attr.Type})##
#end
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-singleclass.vm
----------------------------------------------------------------------
diff --git a/cayenne-tools/src/main/resources/templates/v1_2/embeddable-singleclass.vm b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-singleclass.vm
index c5d6c89..a51a714 100644
--- a/cayenne-tools/src/main/resources/templates/v1_2/embeddable-singleclass.vm
+++ b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-singleclass.vm
@@ -38,7 +38,9 @@ ${importUtils.setPackage($subPackageName)}##
${importUtils.addReservedType("${subPackageName}.${subClassName}")}##
${importUtils.addType("${basePackageName}.${baseClassName}")}##
${importUtils.addType("org.apache.cayenne.Persistent")}##
+#if(${object.Attributes} and !${object.Attributes.isEmpty()})
${importUtils.addType('org.apache.cayenne.exp.Property')}##
+#end
#foreach( $attr in ${object.Attributes} )
$importUtils.addType(${attr.Type})##
#end
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-superclass.vm
----------------------------------------------------------------------
diff --git a/cayenne-tools/src/main/resources/templates/v1_2/embeddable-superclass.vm b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-superclass.vm
index be1b829..00efe07 100644
--- a/cayenne-tools/src/main/resources/templates/v1_2/embeddable-superclass.vm
+++ b/cayenne-tools/src/main/resources/templates/v1_2/embeddable-superclass.vm
@@ -38,7 +38,9 @@ ${importUtils.setPackage($superPackageName)}##
${importUtils.addReservedType("${superPackageName}.${superClassName}")}##
${importUtils.addType("${basePackageName}.${baseClassName}")}##
${importUtils.addType("org.apache.cayenne.Persistent")}##
+#if(${object.Attributes} and !${object.Attributes.isEmpty()})
${importUtils.addType('org.apache.cayenne.exp.Property')}##
+#end
#foreach( $attr in ${object.Attributes} )
$importUtils.addType(${attr.Type})##
#end
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm
----------------------------------------------------------------------
diff --git a/cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm b/cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm
index 01206d3..64815d3 100644
--- a/cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm
+++ b/cayenne-tools/src/main/resources/templates/v1_2/singleclass.vm
@@ -36,7 +36,9 @@
${importUtils.setPackage($subPackageName)}##
${importUtils.addReservedType("${subPackageName}.${subClassName}")}##
${importUtils.addType("${basePackageName}.${baseClassName}")}##
+#if(${object.DeclaredAttributes} and !${object.DeclaredAttributes.isEmpty()})
${importUtils.addType('org.apache.cayenne.exp.Property')}##
+#end
#foreach( $attr in ${object.DeclaredAttributes} )
$importUtils.addType(${attr.Type})##
#end
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/cayenne-tools/src/main/resources/templates/v1_2/superclass.vm
----------------------------------------------------------------------
diff --git a/cayenne-tools/src/main/resources/templates/v1_2/superclass.vm b/cayenne-tools/src/main/resources/templates/v1_2/superclass.vm
index 013e8db..8586216 100644
--- a/cayenne-tools/src/main/resources/templates/v1_2/superclass.vm
+++ b/cayenne-tools/src/main/resources/templates/v1_2/superclass.vm
@@ -35,7 +35,9 @@
${importUtils.setPackage($superPackageName)}##
${importUtils.addReservedType("${superPackageName}.${superClassName}")}##
${importUtils.addType("${basePackageName}.${baseClassName}")}##
+#if(${object.DeclaredAttributes} and !${object.DeclaredAttributes.isEmpty()})
${importUtils.addType('org.apache.cayenne.exp.Property')}##
+#end
#foreach( $attr in ${object.DeclaredAttributes} )
$importUtils.addType(${attr.Type})##
#end
http://git-wip-us.apache.org/repos/asf/cayenne/blob/c38a8e6b/docs/doc/src/main/resources/RELEASE-NOTES.txt
----------------------------------------------------------------------
diff --git a/docs/doc/src/main/resources/RELEASE-NOTES.txt b/docs/doc/src/main/resources/RELEASE-NOTES.txt
index 3a6b2de..2746800 100644
--- a/docs/doc/src/main/resources/RELEASE-NOTES.txt
+++ b/docs/doc/src/main/resources/RELEASE-NOTES.txt
@@ -25,6 +25,7 @@ CAY-1993 Reverse Engineering does not work with PostgreSQL database
CAY-1994 Modeler Migration Tool Shows No Changes
CAY-1997 Difference in NULL handling inside the path between PropertyUtils and DataObject.readNestedProperty
CAY-1998 Speeding up PropertyUtils
+CAY-1999 Unneeded Property import for superclasses with no properties
----------------------------------
Release: 4.0.M2