Hi@all,
i'm designing some Service and DAO interfaces for my application at the moment and i'm not sure if it is better to include full domain objects in the signatures or only the identifiers (in my case a long type).
For example:
variant a):
variant b):Code:public void changeRequestStatus(Request request, Status status);
Status is an enumeration and Request my domain object.Code:public void changeRequestStatus(long requestId, Status status);
What is considered the better design?
Thx in advance!
-lasse


Reply With Quote
