cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <Peter.Schroe...@freenet-ag.de>
Subject AW: Cayenne Generated Classes in Web Service API
Date Fri, 08 Jun 2007 07:14:41 GMT
no, we did a detour providing our own pojos that contain only serializable data and are handled
by axis.
before sending data to the client we copy values from cayenne-objects to our pojos using reflection.

i did not like this approach, but it had the advantage, that we could easily strip out some
data, that we didnt want to send to the user but internally using with cayenne.

-----Ursprüngliche Nachricht-----
Von: Kevin Menard [mailto:kmenard@servprise.com] 
Gesendet: Donnerstag, 7. Juni 2007 22:39
An: user@cayenne.apache.org
Betreff: RE: Cayenne Generated Classes in Web Service API

Hi Peter, 

> -----Original Message-----
> From: Peter Schröder [mailto:Peter.Schroeder@freenet-ag.de] 
> Sent: Thursday, June 07, 2007 11:45 AM
> To: user@cayenne.apache.org
> Subject: AW: Cayenne Generated Classes in Web Service API
> 
> hi michael,
> 
> we did some basic testing on sending cayenne classes via axis 1.4.
> that didnt really work out, because persistent objects 
> provide references to unserializable objects.
> i think that this might be handled by a custom 
> de-/serializer, but we did no further investigation.  

Did you try the XML encoder/decoder provided by Cayenne?  This should make mapping data objects
to XML fairly straightforward.

-- 
Kevin

Mime
View raw message