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 7669673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:38:56+00:00 2026-05-31T15:38:56+00:00

I just started learning about domain driven design, and one of the few things

  • 0

I just started learning about domain driven design, and one of the few things that confuse me the most is how to determine which one should be entity, which one should be value object

I know to determine entity/value object, we need to base on the domain context, in one context, one domain object can be entity, in another, it can be value object, but still there are some situations I can’t decide

.e.g. address
– In the context of a customer management application (let’s just say an application to manage customers, add/delete/change status,etc of customers), address is clearly value object because here we don’t need to differentiate between one address from another, 2 customers can have same address
– On the other hand, in the context of a online booking application, can I say address is an entity? because now we need to differentiate customers by their billing address (just ignore the case 2 customers having same address for the moment)

To me, address is unique itself, so it definitely already has identity. So identity of a domain object will not decide whether it’s an entity or value object, if so then what will be the key factors to choose?

Another example, I have one application that list a number of areas in one country, user can choose one area, and find all the restaurants that fit their searching criteria in that area. In this case, is area a value object or entity? Currently I think it’s more on an entity but still not very sure. Each area is unique also

I’m not sure whether my question is clear or not, I try my best to explain my thinking currently

  • 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-05-31T15:38:57+00:00Added an answer on May 31, 2026 at 3:38 pm

    I think some of your difficulties may be in the subtle meanings of some of these terms. For example, you mention “To me, address is unique itself, so it definitely has identity”. In terms of how most people use “identity” in domain-driven design, your statement would probably be incorrect.

    A value object’s set of attributes is its definition. If you change any aspect of it, you have a completely different object. Using your address example, if you change any part of it, you get a entirely different address. It is not the same address with aspects of it changed. Your customer moved to a new address; they did not change aspects of the same address.

    However, if you were a mapping application and the address itself changed, then here, the address would be a entity. In such a scenario, the city planners may want to re-number houses on the street. In that case, the SAME address is being modified. In that case, we would need to update the entity, not a value object.

    Regarding your billing address example, the billing address is probably still a value entity (at least the physical address portion of it). A payment method (e.g. credit card) may be the entity in that example, and it may include other value objects (such as billing address, credit card number, etc).

    You may find it helpful to see review this question and its answers as well: Value vs Entity objects (Domain Driven Design)

    Hope this helps. Good luck!

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

Sidebar

Related Questions

I've just started learning Java (about a week ago) and the last few days
Question 1 I've just started learning jQuery and one thing that puzzles me is
I just started learning about database normalization and I have a question about one
I just started learning about CSRF. As per OWASP CSRF Article CSRF is an
I've just started learning about Gimp scripting using Python, and was wondering, how do
I am in an introductory java course and we just started learning about inheritance.
I just started learning Common Lisp a few days ago, and I'm trying to
I just started learning about servers, and I am messing around with Google's App
I've just started learning about thread safety. This is making me code a lot
I just started learning Java and I'm confused about the topic of platform independence.

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.