You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2007/12/09 23:31:28 UTC
svn commit: r602744 -
/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/resources/dotemplates/v1_2/embeddable-singleclass.vm
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