Menu

#29 return statement for newPersistentObject

open
nobody
None
5
2002-12-17
2002-12-17
Ron Liddle
No

The code that is generated by the 2.0 beta4 SourceGen
for the Domain objects does not contain the
PersistSuffix specified in the properties file. If you
include a PersistSuffix such as "Persist" - the code that
is generated for the Domain object in the
newPersistentObject method does not include it in the
return statement that is generated. currently in
SourceGen.java generateDomainClass method :

meth.getSourceCode().add(
"return new " + this.className(tableName)
+ "();");

Should be:

meth.getSourceCode().add(
"return new " + this.className(tableName) +
i_persistSuffix + "();");

Discussion


Log in to post a comment.

MongoDB Logo MongoDB