Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025761Openbravo ERPA. Platformpublic2014-02-18 19:472014-02-18 19:47
shuehner 
shuehner 
normalminorhave not tried
newopen 
5
 
 
Core
No
0025761: Allow xsql to get list of java fields from all SqlMethods instead of only the first one.
Currently SqlC only uses list of result columns form the first SqlMethod to build the list of fields in java.

This forces developers to manually add "'' as myextrafield" in the first select statement to add more fields.
Or even add a otherwise completely useless 'dummy' methods as the first methods in a file just to define list of fields.

Sqlc should be enhanced to allow it to parse list of result columns of all select statements in a file automatically avoiding developers to need to do that manually.

Note:
When doing so add also option for generated java files not having any fields as that special case can happen i.e. in modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler_data.xsql

which only has one update type method (after removing the dummy methods from the file).
n/a
No tags attached.
Issue History
2014-02-18 19:47shuehnerNew Issue
2014-02-18 19:47shuehnerAssigned To => shuehner
2014-02-18 19:47shuehnerModules => Core
2014-02-18 19:47shuehnerTriggers an Emergency Pack => No

There are no notes attached to this issue.