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
1 answer

XPath problem - Retrieving user by name (Mendix)

I have Tasks entity, associated with Administration.Account entity (I use it to display a list of tasks with assigned users). Tasks entity has a string parameter “Requester”, where I store names of users. I created a microflow, which should…
Rumata
  • 1,027
  • 3
  • 16
  • 47
0
votes
1 answer

Is there a elegant way of putting domain validations inside domain layer?

I am new to domain driven design and there is one thing that is bothering me when I'm writing domain model. How to handle domain validation? I am designing library management system where user can search through books and see if book is on the…
0
votes
1 answer

Is DDD good for a search based application?

I'm learning about DDD. But I don't know how can I apply DDD in my application. Almost of all my application have simple requirements. Just fetch data from API and restructure them. If there is more required data, call more API. Example Requirements…
0
votes
2 answers

how to model this invoice requirements

In some business domain, I received invoicing requirements as follows: + Invoice Items are of two types: a service or a fee. - Invoice Service Item is taxable. fee is not. + Invoice Items (services and fees) cost is calculated in two manners: …
0
votes
0 answers

What does "Create a domain model via POCO classes" means?

I have an assessment to solve. In the project solution which is given to me, there is a .csv file expected from me to process it. Here is how it looks like; asset…
Ozan Yurtsever
  • 1,274
  • 8
  • 32
0
votes
1 answer

What issues (if any) do you see in using the builder-pattern within an entity itself as opposed to a separate inner class?

After searching SOF for related questions and finding something roughly similar for PHP, but still not satisfying, here's my question. Problem: using an inner static builder class feels like too much typing. I want to keep some properties immutable…
0
votes
1 answer

What if value needs to be corrected?

I know that DDD suggests to create separate usecases foreach business operation. Imagine you have a Player aggregate. It has Address Value Object. DDD doesn't allow to create an UpdatePlayer() method on PlayerApplication layer. What we should do…
0
votes
1 answer

Loading related objects in memory (without an ORM)

I am using ADO.NET to read a bunch of data from the database into in-memory objects. This is my domain model: // Question.cs public class Question { public int ID { get; set; } public string Title { get; set; } public string Description…
software_writer
  • 3,941
  • 9
  • 38
  • 64
0
votes
2 answers

TDD - Should I test database constraints at my domain model?

Should I test database constraints in my domain object? E.g. If the field in the database is varchar(500) and required, should I have a test for this in my code? Or should I just rely on a try/catch. It is a fairly large overhead of work to do - if…
Sebastian Patten
  • 7,157
  • 4
  • 45
  • 51
0
votes
1 answer

UML Domain Model some Jira business rules

I'm trying to represent some Jira the following business rules: A project has defined issue status and issues types. Same issue status and types can be defined across multiple projects. Each issue has a status and a issue type of the project it…
xdw dae
  • 51
  • 5
0
votes
0 answers

UML Domain model entities from same group but with different attributes

I have the following problem: A report is composed by 3 different metrics and each metric can be obtain from different place. Example: A Report is composed by 3 Metrics: Metric1, Metric2, Metric3. Each metric is obtain from different C. for example…
Sneijky
  • 11
  • 2
0
votes
1 answer

Using Jackson, how do you unmarshal JSON to a Java Map, but have a specific nested member as a domain instance?

Given the following example JSON: { "aud": "you", "exp": 1300819380, "user": { "name": "Joe", "address": { "street": "1234 Main Street", "city": "Anytown", "state": "CA", "postalCode": 94401 } …
Les Hazlewood
  • 18,480
  • 13
  • 68
  • 76
0
votes
1 answer

PlanningEntities split across multiple collections

I am writing a staff scheduler for my office. There are at least two shifts per day (7 days a week) and I want the optimizer to make sure no one staff member works drastically more weekend shifts than another. I have a simple working program that…
Anthony
  • 341
  • 2
  • 11
0
votes
1 answer

Optaplanner planning and shadow variables for worker task scheduling

first of all, for my score calculation I use the Java EasyScoreCalculator interface and create my solver also with the Java API (as I have/had problems loading the configuration/constraints from xml or drl file inside a Java OSGI Plugin) My…
eldorado
  • 1
  • 3
0
votes
2 answers

In UML class diagram, where to show DAO methods of a domain class

I am trying to build UML class diagram. I am a bit new to UML so pardon my ignorance. I have a domain class User with these attributes: UserName ; data type is string ; identifier Password ; data type is string Active ; data type is bool Locked ;…
ChumboChappati
  • 1,442
  • 4
  • 18
  • 38