Is there a method that returns a list or array of column names for a table? If not, I thought I would retrieve the Bean Managers ALL_FIELDS string and split it at the commas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a method that returns a list or array of column names for a table? If not, I thought I would retrieve the Bean Managers ALL_FIELDS string and split it at the commas?
Hi,
I was expecting to see any utility to the generated string array constant FIELD_NAMES:
private static final String[] FIELD_NAMES
As a matter of fact, it got commented out to avoid alerts of "unused variable" during CheckStyle analysis. It would be enough to make it public.
I committed the change to the manager template so that you could get the latest version from there:
http://sql2java.cvs.sourceforge.net/sql2java/sql2java/src/templates/velocity/java/pertable/manager.java.vm?view=markup
http://sql2java.cvs.sourceforge.net/sql2java/sql2java/src/templates/velocity/java5/pertable/manager.java.vm?view=markup
Best regards,
Alain
Thanks again.