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
2 answers

How to implement DDD and Repository Design Pattern for a Remote data store and a local one?

I am new to DDD and the Repository Design Pattern thing, in fact I have no experience whatsoever on this. I came across it a while back and although I don't fully understand it yet I feel it's really flexible and I should give it a try. So I am…
0
votes
1 answer

What should this specific service class look like in my domain?

I'm coming from a WebForms world where all logic is located in the codebehind of the aspx-pages. After reading a few books on ASP.NET MVC, listening to some podcast and watching some videos on Tekpub, I've decided that it is time to approach things…
0
votes
1 answer

TYPO3 - TCA - Dynamic Labels possible?

I am currently writing the TCA for a custom Domain-Model, representing data-records coming via an interface. I have a child-model being referenced by its parent, and I would love to be able to build the label ("title") for a specific record…
Oliver
  • 105
  • 13
0
votes
1 answer

How do you work with a domain model without POJOs in Java

I want to decouple my code from having many different POJOs that copy the data between multiple levels of abstraction. Is there a way to work with the data without a POJO?
Chap
  • 2,776
  • 24
  • 31
0
votes
1 answer

Alternative flow in usecase

If u have a use case with an alternative flow, and in that flow there is need for some new classes and methods should you add those classes to the main domain model and sequence diagram or should u create an alternate domain model?
wh1zx
  • 11
  • 1
0
votes
1 answer

How to effectively debug TYPO3-Fluid-Form for new object?

I have a "normal" Controller for an object called Application. This object has become quite complex and uses ajax-validations and lots of jQuery-functions to validate property-values and so on. Unfortunately, I am occasionally getting errors from…
Oliver
  • 105
  • 13
0
votes
2 answers

TYPO3 : How to determine child-objecttypes of specific parent domain-model?

I have some different domain-models, each being parent of different sub-models. All of those domain-models extend themselves out of a basic model class and I want to write a general function in the base-model, that deals with subclasses of the…
Oliver
  • 105
  • 13
0
votes
1 answer

how to automatic generate domain model and XML map by use entity framework tool?

I have a data model(.edmx file), how can I use this file automatic generate a Domain model and a XML map by using entity framework tool? Domain Model: A domain model for use by a data access layer component in a client application. XML MAP: An…
Kevin
  • 1
  • 1
0
votes
2 answers

TYPO3 : Automated TCA Generation for dynamic Domain-Model-Properties

I have built some Domain-Model-Objects, that represent DataRecords coming from an XML-Interface. To keep those Objects versatile, they are being set up using dynamic properties during __construct, using Records of an own Object-Property-Model =>…
Oliver
  • 105
  • 13
0
votes
1 answer

How to apply DDD to context without explicit domain model

Consider there is a domain for which a bounded context is to be created. However, nothing should be persisted in this domain. Just a purely task-based logic should be there and a hypothetical domain model won't be updated. I see no way to apply…
0
votes
1 answer

Are the relations of this domain model based uml class diagram correct and in which class should required methods be placed?

I´m currently trying to visualize a class diagram for an ordering software, in which an Employee/User is able to create new orders, which have information about the Customer, the Products, the current status and the Employee who works on that…
LukyFoggy
  • 519
  • 8
  • 31
0
votes
1 answer

Null reference issue occurs when converting from Domain model to View model

The below code throws null reference exception when there is no data to be returned from the stored procedure. Method executes successfully if data is present. Am I doing anything wrong with the below code? Do I need to create an object from the…
Harsha W
  • 3,162
  • 5
  • 43
  • 77
0
votes
1 answer

Identifying Aggregates when some entity is shared?

Let’s say we have a simple data structure: Both, Interface and Network Printer have EndPoint, which is stored in the different table (with FKs enforced). For example, Interface requires EndPoint’s port numbers be between: 1000-2000 and Network…
Tenek
  • 437
  • 1
  • 6
  • 15
0
votes
2 answers

DB Schema: Versioned price model vs invoice-related data

I am creating some db model for rental invoice generation. The invoice consists of N booking time ranges. Each booking belongs to a price model. A price model is a set of rules which determine a final price (base price + season price + quantity…
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