value-objects Questions

1

Solved

If I have a payment value object can it be shared by two different aggregate roots? or should I duplicate it? Both options feel wrong!

2

Solved

I have read plenty of C# examples of Value Objects, and I understand that it is an "object" that is identified by it's values. If a value changes, the object is "new". However, that doesn't seem t...
Psilocybin asked 23/3, 2012 at 6:6

3

Solved

I have a value object LoginAuth which contains the User authentication data for my secondary login system. For every User it is optional to opt for the secondary login. So the User entity does not ...
Forzando asked 22/8, 2014 at 15:16

2

I'm new to DDD and trying hard to understand some of the concepts. How do you determine in your domain what objects are Entity objects and which ones are Value objects, and how exactly are they tre...

13

Solved

Having come across the concept of immutable objects recently, I would like to know the best practices for controlling access to the state. Even though the object oriented part of my brain makes me ...
Gunn asked 20/2, 2014 at 14:29

3

Solved

From the effective Java book it states that "An object can always be reused if it is immutable". String s = "shane"; String p = "shane"; This version uses a single String instance, rather than ...
Lacerated asked 23/9, 2013 at 3:47

3

Solved

By looking to the example of a Domain Object into Zend Quickstart tutorial, and other examples considering a DAO/VO patterns, they both seem to be very similar. Can we deduce that to say "Value O...

3

Solved

Since there aren no respositories for value objects. How can I load all value objects? Suppose we are modeling a blog application and we have this classes: Post (Entity) Comment (Value object) T...
Godesberg asked 16/2, 2010 at 23:27

2

Solved

I haven't really seen any examples, but I assume that they are saved inside the containing entity table within the database. Ie. If I have a Person entity/aggregate root and a corresponding Person...
Graz asked 24/3, 2009 at 19:57

1

Solved

I want to implement the value object pattern in D. That is, I want to have mutable reference variables to immutable objects. T variables should be assignable, but T objects should never change thei...
Legged asked 8/8, 2012 at 10:29

11

Solved

(This question uses PHP as context but isn't restricted to PHP only. e.g. Any language with built in hash is also relevant) Let's look at this example (PHP): function makeAFredUsingAssoc() { ret...
Dugald asked 13/1, 2010 at 13:34

1

All of my entities and value objects implement marker interfaces IEntity and IValueObject. I have set them up to be treated as components like so: public override bool IsComponent(Type type) { re...

3

Solved

I have a person entity containing an Address as a value object: public Person() { WithTable("Person"); Id(x => x.Id); Component<Address>(x => x.Address, a => { a.Map(x => x....
Spotweld asked 25/3, 2009 at 16:30

5

Solved

Curious if anybody has considered using EnumMap in place of Java beans, particularly "value objects" (with no behavior)? To me it seems that one advantage would be that the name of a "property" wou...
Kinesiology asked 31/8, 2009 at 20:2

1

Solved

I'm not well versed in domain driven design and I've recently started created a domain model for a project. I still haven't decided on an ORM (though I will likely go with NHibernate) and I am curr...
Barbados asked 30/11, 2009 at 7:6

1

Solved

Entities and value objects are both domain objects. What's the use of knowing the distinction between the two in DDD? Eg does thinking about domain objects as being either an entity or value object...
Upshaw asked 23/11, 2009 at 19:23

3

Solved

I have gotten so far that I understand entity objects have an ID while value object have not, but in the most common example you have the person entity that have a address value object attached to ...
Wham asked 28/2, 2009 at 22:48

© 2022 - 2024 — McMap. All rights reserved.