DDD Modeling questions : student, classroom, seats and a favorite seat for a student.
Posted
by Erik Ashepa
on Stack Overflow
See other posts from Stack Overflow
or by Erik Ashepa
Published on 2010-03-26T16:24:55Z
Indexed on
2010/03/30
7:03 UTC
Read the original article
Hit count: 731
Hi, i'm not sure how to model this relationship...
A classroom contains many seats, every student studies in a classroom and have a favorite seat within it.
The way i see it, i have two aggregate roots: classroom and student, seats a are entities aggregatged by classroom...
And for a student to have a fovorite seat, it must hold a reference to it (seat isn't an aggregate root).
Any suggestions? Thanks in advance, Erik.
© Stack Overflow or respective owner