RIAwolf / dao-ext

Automatically exported from code.google.com/p/dao-ext
0 stars 0 forks source link

Not enough details scaffolded into generated code to make this as useful as it could be. #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Named parameters are easier to edit, change, or omit than ? params.

stmt.text = 'INSERT INTO scores( contestant, score, correct, incorrect ) '+
                     'VALUES (@contestant,@score,@correct,@incorrect );';
stmt.parameters['@contestant'] = rowItem.contestant;
stmt.parameters['@score'] = rowItem.score;
stmt.parameters['@correct'] = rowItem.correct;
stmt.parameters['@incorrect'] = rowItem.incorrect;

The looping function setParams seems to hate it if any of the ?'s are changed 
around. The code 
should scaffold up to allow for this level of flexibility. Not all params need 
to be sent on an insert.

Original issue reported on code.google.com by JeffreyT...@gmail.com on 17 Mar 2009 at 5:22

GoogleCodeExporter commented 9 years ago
fixed on SVN.
Code now use named params instead of numeric prams. If a param is null in 
source VO is correctly setted to 
null.

Original comment by matteo.r...@gmail.com on 24 Mar 2009 at 3:20