empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benni...@apache.org
Subject svn commit: r1027547 - /incubator/empire-db/trunk/empire-db-codegen/src/main/resources/templates/Record.vm
Date Tue, 26 Oct 2010 13:32:04 GMT
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



Mime
View raw message