posted 12 years ago
Is it okay to have a Business Object get a Transfer Object from a Data Access Object and return the Transfer Object as is to the web tier? I was thinking that the business objects could translate the transfer object they get back into an object of a different class before returning the data to the web tier but that seems like it would be really inefficient. Can anybody advise me on this? By the way, I'm talking about no more than 50 transfer objects being returned from the DAOs that only contain 5-10 primitive typed attributes and no object graph. Thanks a lot for any advice. I've been going over this in my head for a couple days now.