In the last paragraph on Page 29 of EJB Design Patterns book by Floyd Marinescu, it says that client performs its update onto a DTO locally and then update the sever by passing a domain DTO to an updateXXXEntity method on the DTO factory which would copy the attributes of the DTO into the appropriate entity bean using fine grain set methods on the entity bean's local interface.
I am rather puzzled by this. Factory should only create an object of a given type as its name implies. Having update operation on the factory changes the semantics of the Factory. In this case the DTO Factory should then be called DTO controller that gets, updates and perhaps deletes the DTO. Am I missing something ?
Thanks in advance.