Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Result {
- private Object returnObjectOfMethod;
- private boolean status; //success or fail. true / false
- private statusMessage; // you got the following error / your request was successfull
- }
- - each DAO works independantly and returns an entity ////////// cant make up the strategy for problems in DAO. should the same be followed as below for service?
- - the returning object from service method is not an entity but a RESULT.returningObjectOfMethod (which is entity inside the result class)
- - This RESULT is evaluated in controller and dealt like wise and error message or success message is passted to JSP
Advertisement
Add Comment
Please, Sign In to add comment