cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r602744 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm
Date Sun, 09 Dec 2007 22:31:28 GMT
Author: aadamchik
Date: Sun Dec  9 14:31:26 2007
New Revision: 602744

URL: http://svn.apache.org/viewvc?rev=602744&view=rev
Log:
CAY-933 Embeddable classes - support class generation

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm?rev=602744&r1=602743&r2=602744&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm
Sun Dec  9 14:31:26 2007
@@ -79,17 +79,15 @@
     }
 #if ( $importUtils.isBoolean(${attr.Type}) )
 	public boolean is${stringUtils.capitalized($attr.Name)}() {
-        Boolean value = (Boolean)readProperty("${attr.Name}");
-        return (value != null) ? value.booleanValue() : false;
+        return $stringUtils.formatVariableName(${attr.Name});
     }
 #elseif ( $importUtils.isNonBooleanPrimitive(${attr.Type}) )
     public $classGen.formatJavaType(${attr.Type}) get${stringUtils.capitalized($attr.Name)}()
{
-        Object value = readProperty("${attr.Name}");
-        return (value != null) ? ($importUtils.formatJavaTypeAsNonBooleanPrimitive(${attr.Type}))
value : 0; 
+        return $stringUtils.formatVariableName(${attr.Name});
     }
 #else
     public $importUtils.formatJavaType(${attr.Type}) get${stringUtils.capitalized($attr.Name)}()
{
-        return ($importUtils.formatJavaType(${attr.Type}))readProperty("${attr.Name}");
+        return $stringUtils.formatVariableName(${attr.Name});
     }
 #end
 



Mime
View raw message