You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by be...@apache.org on 2010/10/26 15:32:04 UTC
svn commit: r1027547 -
/incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm
Author: benniven
Date: Tue Oct 26 13:32:04 2010
New Revision: 1027547
URL: http://svn.apache.org/viewvc?rev=1027547&view=rev
Log:
fixes EMPIREDB-90 (The "createRecordProperties" switch in the codegenerator's configuration works not properly.)
Modified:
incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm
Modified: incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm?rev=1027547&r1=1027546&r2=1027547&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm (original)
+++ incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm Tue Oct 26 13:32:04 2010
@@ -50,10 +50,10 @@ public class $parser.getRecordClassName(
// Access methods for all attributes
#foreach($col in $table.columns)
- public $parser.getJavaType($col) $parser.getAccessorName($col)() {
- return ($parser.getJavaType($col))super.getValue(getDbTable().${parser.getAttributeName($col)});
+ public $parser.getJavaType($col).getName() $parser.getAccessorName($col)() {
+ return ($parser.getJavaType($col).getName())super.getValue(getDbTable().${parser.getAttributeName($col)});
}
- public void $parser.getMutatorName($col)($parser.getJavaType($col) val) {
+ public void $parser.getMutatorName($col)($parser.getJavaType($col).getName() val) {
super.setValue(getDbTable().${parser.getAttributeName($col)}, val);
}
#end