Regular |
|
Joined: Thu Jul 01, 2004 12:13 am Posts: 68 Location: San Diego, CA
|
We ended up using DTOs with our service layer, but only because we needed to serialize the objects into XML SOAP message. In all likelihood you'll probably use bi-directional relationships in your hibernate objects so that causes circular references and thus cause XML serialization to fail.
Essentially, we used the Hibernate BOs throughout or Java EJB layer, but resorted to DTOs for the service layer. Are DTOs were basically our BOs minus the circular references.
HTH,
Lou
|
|