The Artima Developer Community
Sponsored Link

Design Forum
Service-oriented domain objects

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andrew Wagner

Posts: 1
Nickname: chessguy
Registered: Aug, 2008

Service-oriented domain objects Posted: Aug 15, 2008 12:15 PM
Reply to this message Reply
Advertisement
Hi all. I've got a question that I think good design principles can help with, but I'm at a loss for how. Note that I'm simplifying the situation for the sake of explaining it clearly.

Suppose I've got a big customer database where I'm persisting lots of information about my customers. Now I want to put a web service in front of the database which supports basic CRUD operations. Simple, right?

Suppose, though, the customer has dozens of properties. And of course, some of those properties could be forcing joins across huge tables. Now think about, say, the GetCustomerByName operation. it's going to return a whole massive Customer object every time. But most, or all, of the clients could care less about many of the properties (in fact, they all only want a few, but it's a different small subset for each client). Is there some way to have our cake (a small number of find operations), and eat it too (a small number of Customer DTOs)?

Any thoughts are welcome. Thanks!

Topic: Database creation help Previous Topic   Next Topic Topic: Head First Design Patterns in C++

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use