Morley, Liam wrote:
We've got a db table with a structure like this:

Name
Address
SSN
Field1
Field2
...
Field30approx


The guy who designed the java class for this (a bit more of a C-style programmer than I am) wrote a class structure like this:

String name;
Address address;
String ssn;
int[] fields;


where fields is an array of length 30 that has the values of fields 1 through 30. (The fields actually have individual names, not Field1 Field2 etc.)

is there a way to map my fields to an array, or do i have to have 30 internal variables?

AFAIK the only way to do so is to use a custom row-reader implementation for the class. Check here for details:


http://db.apache.org/ojb/docu/advanced-technique.html#using-rowreader

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to