Hi All,


I'm putting together a Hibernate/Spring/WebService/Struts project, and have a 
couple of questions before I move past familiarisation. In this app:



a. There is a Hibernate Person entity and a PersonVO value object.

b. The WebService has a getPerson(Long id) method that returns the entity and a 
getPersonVO(Long id) method that returns the value object

c. The Struts Controller has corresponding getPerson(Long id) and 
getPersonVO(Long id) methods.



My questions are:



1.

I've been getting inconsistencies between the Andro-generated Struts using my 
WebService, and other independant WebService clients calling the same service. 
I find the Struts controller is able to successfully retrieve both an entity 
and value object, whereas my calls from other WebService clients results in a 
serialisation error for the entity, although works successfully for the value 
object.



2.

Is it necessary to convert all entity objects to value objects? I would like 
the option of being able to expose an entity directly through a WebService, 
rather than via a ValueObject.





The primary focus of my architecture is to provide WebServices. I've been 
experimenting with the Struts front end more out of interest. I've spent 
considerable time with this, and so any good advice would be much appreciated 
as I move forward.



Thanks,

Simon
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1459#1459
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to