Questions tagged [aggregateroot]

A cluster of associated objects that are treated as a unit for the purpose of data changes. External references are restricted to one member of the Aggregate, designated as the root. A set of consistency rules applies within the Aggregate's boundaries.

441 questions
0
votes
2 answers

Aggregate root creating child entities with new GUIDS

I generally use nHibernate to generate the unique ID's for my entities... but I am thinking about generating them in code? Consider the following example: (If I am doing something else wrong please point it out as I am new to DDD): These are all the…
0
votes
1 answer

Accessing AR from value object

I have a quite difficult problem to solve. In my model I have AR Unit, AR Stage and VO GoToPositionOrder, that implements Order interface. It works like that: I create order: order = GoToPositionOrder(Position(Point(3, 4))) I give it to unit:…
Rafał Łużyński
  • 7,083
  • 5
  • 26
  • 38
0
votes
2 answers

EF, Repositories and crossing aggregate boundaries

I have a two aggregate roots in my domain, and therefore two repositories. We'll call them BookRepository, and AuthorRepository, for the sake of example. I'm designing an MVC application, and one page has to display a table containing a list of…
0
votes
1 answer

Identity of an aggregate root

As I understand from Evans book, aggregate root are entities that are uniquely identifiable in a domain. Now, I am modelling an aggregate root which can be uniquely identified by a string that is composed of three of it's attributes -…
0
votes
2 answers

Are Aggregate Roots just Entities with invariants over their contents?

A Network is composed of Nodes that are connected with Fibers. The Network is responsible for making sure that: both ends of any fiber are connected to a Node; that no two ends are connected to the same Node; that no two nodes can be in the same…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
1 answer

Exact concerns and responsibilites of DDD elements

I saw lots of articles regarding DDD and many patterns described in 'Patterns of Enterprise Application Architecture' By Martin Fowler book, yet i need DEVELOPMENT GURUS on stackoverflow help to understand few things. What Is the main (methods and…
Zalaboza
  • 8,899
  • 16
  • 77
  • 142
0
votes
2 answers

DDD Entity Framework Repository Return Complex Type

I have a repository called LeadRepository that returns a model called Lead which is a person. The UI I have is a dashboard that displays the following stats. They are all leads but in different states. Total Leads: 52 Assigned: 49 Unassigned:…
0
votes
1 answer

Complex aggregates - which are roots?

Building a complex manufacturing management system. I have dozens of entities, some which seem to make sense as child aggregates others clearly do not. Allow me to list the various entities, in a sort of order of…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68
0
votes
2 answers

Aggregate Root Choice (for all Football/Soccer fans)

I have been reading StackOverflow for weeks, but I still could not decide whether my DDD Aggregate Root choice is correct. Long story short -- here are the entities. It is about the football/soccer domain: League, Team and Match Each Team can…
0
votes
1 answer

How to retrieve Aggregate Roots that don't have repositories?

Eric Evan's DDD book, pg. 152: Provide Repositories only for AGGREGATE roots that actually need direct access. 1. Should Aggregate Roots that don't need direct access be retrieved and saved via repositories of those Aggregate Roots that do need…
EdvRusj
  • 745
  • 7
  • 14
0
votes
1 answer

How many aggregate roots do I have

These are my entities and relations: NO entity can exist without entity A. When A is deleted all other entities will be deleted too. Therefore A is my aggregate root. But I am not sure wether 1.) B is also an aggregate root for entity C,D and E…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
1 answer

Add multiple children entities to the root aggreate or call multiple respositories

I have an entity A which has three children entities X, Y and Z. I have also a generic repository one of those floating around the web... In my Service method AXYZ() I do multiple repositories calls: (pseudo…
0
votes
1 answer

Best Aggregate Roots and Data Repositories Suggestions

I'm trying to implement data repositories based upon the aggregate roots. However, I'm not sure if this is the best way and I need your feedback. Here are the aggregate roots of my system I've come up with (included are their childs indented…
99823
  • 2,407
  • 7
  • 38
  • 60
0
votes
4 answers

How to write read-only accessor functions in an aggregate root class?

Overall design: I have an aggregate class C that contains N member variables of type M_i, i = 1 ... N that each have a common write-only update() interface as well as class-specific read-only accessor functions [F]un_i(), [F] = any letter, i = 1 ..…
TemplateRex
  • 69,038
  • 19
  • 164
  • 304
0
votes
1 answer

What do we call for these types of objects that used within Domain Model in DDD?

I have tried to find a solution to this naming problem, but I could not find a similar usage anywhere on the web. It could be either we have a design flow in the domain model, or we simply don't use the appropriate name for so called…
Spock
  • 7,009
  • 1
  • 41
  • 60
1 2 3
29
30