Hello all,
I am posting this msg here coz I didn't find a better place to post this architectural question.
The architecture is like Struts->Service Locator->Session Facade->Business Objects->ORM->Database. For transferring data across layers we need DTO's that are again simple POJO's as Hibernate domain objects. Can we use the Hibernate domain objects as DTO's in an application ?
Tommorrow, third party clients can also connect to the application. In that case they might be exposed to the domain objects if we use them. Is that okay ?
If yes, some of the members of the DTO/domain objects need not be matched with any database field. How can we accompalish this ?
Cheers,
Nitin Dubey
|