On Dec 14, 2004, at 02:29, Andrus Adamchik wrote:
> 1. XML Consumer app (webservice client): External XML feed -> Cayenne
> Application -> Database
> 2. XML Producer app (webservice): Database -> Cayenne Application ->
> External XML Client
>
> (Am I missing any important cases?)
>
> Talking about decoding (case 1)... external XML feed may or may not
> have a DB PK value embedded in it. E.g. if you are reading XML data
> from UPS to create Shipment objects, shipment.shipment_id will be
> generated by Cayenne, and will not be present in the feed XML. So to
> match the XML with existing DataObjects we need to define some other
> criteria (e.g. match on a "trackingNumber" which is not a PK). If a
> matching object is found it should be updated from XML, if not - a new
> object should be created.
Ok, I see. I was thinking more of a cayenne server application that
creates xml that are sent to a client, edited and sent back to that
same cayenne server application for storing. Like a detached row set.
- Tore.
This archive was generated by hypermail 2.0.0 : Tue Dec 14 2004 - 03:26:32 EST