On 8/4/06, Øyvind Harboe <oyvind.harbo..ylin.com> wrote:
> I spoke too soon. How do I in readProperty() know the type of the null
> I'll be translating to an empty string or Integer 0? (I expect that
> not to be super hard as Cayenne has this knowledge somewhere in its
> structures)
In general, you would....
Look up the ObjEntity for the the current DataObject, find the
ObjAttribute (or ObjRelationship) for the property name, and then look
at the java type for that OA or OR.
Note that you can speed this up by changing the generated class
templates to automatically hardcode this information into each getter.
This archive was generated by hypermail 2.0.0 : Fri Aug 04 2006 - 09:32:10 EDT