Out of curiousity, if I already use an ObjectContext to retrieve my data, how much penalty and code management is there to create an additional DataContext just to do this conversion. Do I simply create it in my code and assume that whatever the DataContext creates gets cleaned up ok when it falls out of scope or do I need to do some specific clean-up?

On 05/13/2011 09:27 AM, Michael Gentry wrote:
DataContext can convert a DataRow to a DataObject for you:

<T extends DataObject>  T objectFromDataRow(Class<T>  objectClass,
DataRow dataRow, boolean refresh)

mrg


On Fri, May 13, 2011 at 9:21 AM, Andrew Willerding
<[email protected]>  wrote:
That worked to retrieve a DataRow object.  The data is there now.  Is there
some way to convert this now into a usable cayenne data object without
pulling the columns out of the HashMap one column at a time?  Or is there an
underlying bug that is at the root why this is works for MySQL but not for
DB2 V7?



--
Andrew Willerding
Callista CTI

  ph: 416 444-9702 x9455
  fx: 416 444-9732
cell: 416 712-2323
 www: http://www.callistacti.com

Reply via email to