Dear All I'm Ichsan, a new member here and this is my first post. Nice to meet you All. I was surprised that there is theory like DDD. It seems cool to tackle...
1. <<> If I want to create new Employee . . .>We have discussed in the past trusting data out of the database (if this applies in your domain) and using...
Dear All, I got problems about how Repository should be in DDD: - I put an Image in the Employee, which is I think best to be managed by ImageRepository since...
I have used multiple repositories. I split off a repository whenever the complexity gets too much for one repository or the repository starts managing two...
I think if Image is inside Employee aggregate I would have only one repository, Employee repository, which would save whole Employee aggregate i.e. Employee...
... Ok, let's change Employee into Customer to show how important ImageRepository is. Each Customer has his own photo, and his House (which he orders) has its...
Hi, What do you think about idea of public class members in Java. I don't know if this has been discussed, but I would really like to have properties -feature...
so: -If customer is deleted then his image will be deleted. -If customer sells his house, association between house and customer is removed but house still...
Wow you touched on a lot of subjects at once. I think most practical OO developers would agree that although it is ideal to hide all members we realize they...
Spring user forums had same kind of idea with that UserView solution. http://forum.springframework.org/showthread.php?t=23948&highlight=OSIV They call it e.g....
Hey guys, I have been exploring the idea of repositories and want to see what others are doing; I much prefer the idea of creating a single abstract data...
... How important is the concept of image to your domain? Is it part of the core functionality or biz model for the application? Or is it just an attribute of...
Domain-Driven DesignHi, I've been lurking here for about 9 months and finally got around to reading Eric's book. In Chapter 7 he discusses the Cargo handling...
<< How are you guys managing these types of problems?>> What problems exactly? Are you saying you wrote a slick Dal that can some day work with any kind of...
Have you digested Allan Holub's article on getters/setters [ http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html ] on why getters and setters...
Paolo, I don't think it's pedantry. It's a reasonable question. But the definition of value object doesn't rule out, as in the example, different entities...
Paolo, I'm curious as to your assertion that "VO's can't be shared.."? They are a reference-able object like any other. The only difference between a VO and an...
canonicalizing a value object is rarely if ever hamful. The fact that it is immutable makes it so all value objects should be canonicalized if posible but it...
To be clear it can hurt if you have no duplication of objects but this is generally rare. I personally like Java and C#s implementation of this with...
... I think the attribute of the employee happens to be an image in my case. Let me give the concrete class public class Customer { private String name; ...
... Value Object should be immutable, you can't change its attribute unless you create new object. If you have two identical VALUE OBJECT, why don't you pick...
... I would consider Image as Value object ... In my opinion packages should be designed in terms of concepts rather than techical details. I would not create...
Thanks to everyone for setting me straight... Can I rephrase it as: Value Objects _can_ be shared (because they are immutable), Entities _must_ be shared...
I am struggling with a simple example of attempting to implement the DDD approach and I was hoping I could get some feedback from this group. This example is...
That sounds about right. Since you are trying to be precise with the language, I wouldn't say the value objects are "identical", I would say they are "equal"....
Domain-Driven DesignThanks for that Eric, I _am_ trying to be precise and I normally make that exact distinction. But I've been applying slate floor varnish...