Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

My application is having several domains and have corresponding screens for doing all the CRUD operations.

Now I have a requirement where objects from cross domain should be shown in single screen. This is still fine because we are just reading the data from cross domain. But I also need the ability to update the cross domain objects as well.

Let us say there are 15 cross domain objects which end of the day when updated go into their own 15 difference tables.

While I am using Spring MVC and Mybatis what is the best way to handle updates? I guess my concern is if I end up simply updating those 15 objects even though the change is just for 2 or 3 objects, the execution time is long because of the business logic and validation involved. How do I handle this scenarios? Any patterns that I can adopt?

share|improve this question
This isn't entirely clear. Are you trying to avoid needlessly executing updates on entities that don't need to be updated or you're looking to disconnect your web-tier from the business layer cleanly? Also does the user require confirmation of the success or failure of the update? – kolossus Mar 25 at 16:59

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.