Questions tagged [domain-modelling]
8 questions
2
votes
1 answer
How to lower redundancy in my UML Class diagram?
I am modeling a course management system with the following requirements:
2 roles: Student can choose course; Administrator can make courses and then make groups for course, based on list of students who chose that course and based on list of…

Djordje Ivanovic
- 45
- 4
2
votes
1 answer
How to model an entity with a currency?
I am trying to model a bond entity in F# using a unit of measure for the currency.
type Bond = {
Isin: string
Issuer: string
Maturity: DateTime
Price: float??>
}
Let's assume that a static table with all the available/possible…

Thanasis K
- 125
- 6
2
votes
2 answers
Typescript: define types without a field
I'm dealing with a legacy dataset and I'm trying to model some meaningful types in typescript. In this example, assume I have data about work experience from an employee curriculum:
EMPLOY | START | END
'my first employ' | 20180901 |…

balanza
- 1,059
- 1
- 12
- 34
1
vote
2 answers
Domain model defining relationships
Assuming everyone has the rights to do the CRUD operations (everyone is an admin type user). I have displayed CRUD operations the user can perform in the Domain diagram however, it's become quite messy. I am curious if it's acceptable to do the…

Krellex
- 613
- 2
- 7
- 20
0
votes
1 answer
how to represent enums in DDD Aggregrate modeling
I am using Domain-driven-design for a project and as I am modeling the Aggregates I came across a scenario where one of its attributes has restricted input of only certain types. I know I would code this as an enum but aggregrate modeling is…

john
- 1,057
- 1
- 17
- 28
0
votes
1 answer
How should I use singleton in DDD?
I am implementing a school related app for the local government. I have classes and I want to count grade using the following formula: grade = acedemicYear - commencingYear + 1.
You can model this 2 ways:
both commencingYear and academicYear have a…

inf3rno
- 24,976
- 11
- 115
- 197
-1
votes
2 answers
Domain Model modelling how complex should the diagram be/become?
I am incredibly new to Domain Models and I am trying to build up my understanding. I have created this domain model around a scenario which I will provide. I feel this model is simple and as a result, feels incorrect and might be missing elements I…

Krellex
- 613
- 2
- 7
- 20
-1
votes
1 answer
Domain construction Haskell
I have a data type :
data Tree e = Node e (Tree e) (Tree e) | Empty deriving (Show)
type Forest e = [Tree e]
data Animal = Squirrel | None deriving (Show)
and the graphical representation of Forest Int is :
The last element is bottom. Then in…

Waqar Ahmed
- 5,005
- 2
- 23
- 45