Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8720819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:07:09+00:00 2026-06-13T07:07:09+00:00

wi’m writing an online shop and while i was modelling the domain a question

  • 0

wi’m writing an online shop and while i was modelling the domain a question came to my mind, how to model objects that are changed from different systems with different granularity.

For e.g. let’s say we have a Product entity with some Attributes:

  • Produtnumber
  • Name
  • Description
  • Price
  • etc.

We receive new products and product updates from two systems: an inventory management system (via webservice) and a management web ui integrated in the e-commerce product.

From the inventory management i always get a full update of the product with all attributes (even if not all changed). The management ui updates single attributes (crud).

So how should i model (and name) the business case related change methods on the product entity?

Somethin like updateFromIms(price, description, name, …) or should i write a setter for every attribute (which breaks the ‘unmodifiable’ entity)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:07:10+00:00Added an answer on June 13, 2026 at 7:07 am

    When in doubt, I normally look at how the sample Shipping DDD application does it. The sample applicaiton in C# can be found: http://code.google.com/p/ndddsample/

    So in your case, this is similar to how Cargo entity is treated, it has a constructor to create the entity, and then it has public methods like SpecifyNewRoute that is used by the BookingService to ChangeDestination or BookNewCargo. The BookingService is used by a BookingFacade that has the responsibility to:

    This facade shields the domain layer – model, services, repositories –
    from concerns about such things as the user interface and remoting.

    So in your case, your UI and WebService could call a single facade method called UpdateProduct (I don’t think there is a conceptual difference between updating from a service or UI, so you don’t need a separate method like ChangeDestination but it’s your call). The facade methods will call into your ProductService::UpdateProduct method which will call into ProductModel::UpdateProduct

    Now I don’t know the scope of your application, so this could be too much but DDD is not for small applications anyhow. Personally, I take Eric Evans’ book and NDD sample as a guidance but I don’t see a problem with getting rid of some of the complexity (ignoring the facade for example), no one knows your application better than you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
This could be a duplicate question, but I have no idea what search terms
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.