Hi Vincent Vincent Ricard wrote: > Hi Richard, > > On my project, we have two "transport" layers (and we also provide a Java > Client): > - SOAP > - REST (which can return several representations of the same data). > > So, we used the POJO serialization/deserialization way. > Since we provide a client API, we realized that our "client" POJOs could > be slightly different than our "persisted" POJOs. I agree there is some > redundancy, but, for example, there is no need to expose the technical id > or the (Hibernate) version to the "transport" layer. All our "client" > POJOs have natural keys. > > The Client API is an interesting angle. That is definitely one advantage of the POJO route.
Thanks for your input. Richard

