Bobby Lawrence wrote:
Having a little difficulty w/ this...
How would I map a collection or array of Strings in a class?
I have a person object and I have a member variable called "emails" that is a String[] type.
How would I set up my class-descirptor to get this to work without having to create a bean to only store the email string?


I would recommend implementing FieldConversion where you store a string in the database (e.g. emails separated by commas) and write your FieldConversion class to convert between delimited String and String[]. Here's the details;
http://db.apache.org/ojb/docu/guides/jdbc-types.html#field-conversion


If you get the OJB code, you can use one of the classes in the org.apache.ojb.broker.accesslayer.conversions package as an example starting point.

Dave Sunerton-Burl
Lledr Solutions

Email : [EMAIL PROTECTED]
Phone : +44 (0)1690 750446
Web : www.lledr-solutions.com

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



Reply via email to