Questions tagged [domain-model]

A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.

E.g. if you are in retail, you would model the "things" (classes) that are relevant, such as Sale, Product, and SalesTransaction. Read more here

359 questions
0
votes
0 answers

Conversion of a domain model to a REST model using OpenAPI?

I got this task in school to create some Exercises to the topic "Conversion of a domain model to a REST model using OpenAPI" and don't know where to start. Any useful tips or websites that we should read or get used to? Thank you
Pjaks
  • 251
  • 1
  • 11
0
votes
1 answer

What to do for objects that are equal but not identical?

This is either a Java coding design question, or a domain modelling question, I'm not sure yet! Background, simplified as I can't share all the detail: The system I'm working on is deployed in multiple instances (e.g. at different customers, and at…
The Archetypal Paul
  • 41,321
  • 20
  • 104
  • 134
0
votes
1 answer

OptaPlanner domain modelling - multiple PlanningEntity classes?

I am trying to construct the domain model for an optimization use-case, using OptaPlanner. In my mind the following problem should be modeled using two @PlanningEntity classes, but since the OptaPlanner documentation often argues that you usually…
Radical
  • 1,003
  • 1
  • 9
  • 25
0
votes
1 answer

Domain / Object Model Design Question

I have a Story that can have one nominator assigned to it. A nominator can be assigned to multiple stories. The nominator can move a story to their ballot (not a story can only belong to their nominators ballot). I've always done data driven apps in…
Marco
  • 2,453
  • 3
  • 25
  • 35
0
votes
1 answer

How to generically map a domain model to a presentation model?

I am trying to figure out how to generically map a domain model to a presentation model. For example, given the following simple objects and interfaces ... // Product public class Product : IProduct { public int ProductID { get; set; } …
campbelt
  • 1,573
  • 5
  • 27
  • 43
0
votes
1 answer

DDD and Microservices - data flow and structure

I'm trying to create a simple blogging platform and at the same time learn more about DDD and Microservices, so I wanted to ask you about two advises in this context: One of the business rules I assumed in my project is that only users in roles…
0
votes
1 answer

Splitting nested entities keeping invariant within aggregates in DDD

I'm currently developing message imap-based module in crm app and i'm trying to connect dots using DDD principals. I've started with three main entities, all bound under Account Aggregate: Account - Email account. Has multiple Folders. Folder -…
0
votes
3 answers

Event Storming : Domain Event "Add to Cart Requested" is Good or Bad practice?

I have a question about "Domain Events"(orange post-it) in Event Storming When I look some examples of Event Storming, I sometimes see Domain Events that look like this: "Order cancellation Requested" "Add to Cart Requested" "Ticket…
Ecora
  • 1,043
  • 5
  • 10
0
votes
0 answers

Entity Framework Core 5.0.3 - One To One mapping with shadow property foreign keys

For the life of me, I cannot get this to work properly. I have a relatively simple domain model that has a couple of navigation properties that I want to fill out via eager loading. To keep my domain model pure, I have opted to use shadow properties…
0
votes
1 answer

UML Domain Model

I'm trying to get into Java oriented programming, and have seen this characterisation a few times. Specifically the *; I know that the 1..* means that a Section belongs to Infinite number of articles but at least 1. but what does * by itself mean…
Jarvy
  • 13
  • 2
0
votes
1 answer

Designing a domain model (class diagram) for a financial software

During my preparation for an exam in software engineering, I came across the following task in an old exam: For a client, you create a new financial software whose task is, among other things, to perform tax calculations. The following requirements…
0
votes
1 answer

How to share business logic between DTO & domain model?

I'm trying to refactor a codebase that was passing domain models to the views, to use DTOs instead. Overall everything looks cleaner now, except one point: I have some business logic that belongs to the domain but needs to be executed in the view as…
BenMorel
  • 34,448
  • 50
  • 182
  • 322
0
votes
1 answer

Can technology be part of the domain model if the domain includes the technology?

I have a domain that deals specifically with creating, editing and producing word documents containing business related data. I also have a library that wraps the OpenXML SDK (.net) and offers a high-level API for a WordDocument. My use case is that…
Navie
  • 164
  • 1
  • 8
0
votes
1 answer

Would it be valid to use external libraries for standardized protocols (MIME) as a part of the domain model?

I am currently developing an application that parses and manipulates MIME messages wherein these messages are a central part of the domain model. Although I have already implemented the required functionality, for the moment, for parsing these…
0
votes
1 answer

TYPO3 Domain repository temporarily change settings

Normally if someone wants to run the function findAll(), he/she has to define the persistence Pid to let TYPO3 know where to look. If the persistence pid is not present, a function in the repository would do the trick. Like the following: public…
Aristeidis Karavas
  • 1,891
  • 10
  • 29