Menu

#3 Bug in generated getKeyConditions( Data masterData )

open
nobody
None
5
2001-02-22
2001-02-22
No

The generated version of getKeyConditions( Data masterData ) does not always compile. The problem is that it may invoke a getter with an incorrect name. The getters are generated with a name from Output.capIt, but the generated code for getKeyConditions is not using capIt. If the column name is not capitalized (e.g., itemID), then the getter is named getItemID but getKeyConditions calls getitemID. This can be fixed by changing line 1584 in DbGen.java to be "... Output.capIt(mk.getName()) ...".

Discussion


Log in to post a comment.

MongoDB Logo MongoDB