Hi all. I need to have a support POJO model for basic manipulation of my data, but I also need to package up a large chunk of data for transmission across a web service.
In this case, I need to send address book info along with users and group/user data. I could either manually map the basic classes to a DTO set, since those basic classes have lazy loaded collections, or I can create DTOs and extra hibernate hmb XMLs that include non-lazy loaded collections.
Is there another way?
Right now, I'm opting for hibernate to handle it for me, although I might have to change this in the future since what I really need to do is replicate address book info from a server to many clients. This is all on mySql by the way.
|