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

Fluent Nhibernate HasManyToMany both sides with noop map

I am trying to map a POCO as a many-to-many relationship. I do not want a property on Behavior that Contains BehavioralEvents. I'm pretty sure the Many-to-Many mapping has to be in both places, however I don't want the corresponding property on my…
Chris Kooken
  • 32,730
  • 15
  • 85
  • 123
0
votes
1 answer

how to define a two dimensional array using domain models library in ruby?

In order to define a field with one dimension which contains Integers, used to define in the below format using domain models library. class Sample include DomainModel field :numbers, :type => Integer, :collection => true end In the similar…
priyanka
  • 315
  • 3
  • 14
0
votes
2 answers

Which option is better to extend a feature 1) add a property or 2) create a new table?

Suppose i have a Cat domain as shown below. class Cat{ String name Integer age } Now i want to add a new feature that will assign tags to cats. Now i see two options to achieve this. Option 1 add a property to the Cat domain…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
2 answers

Aggregation relationship between client and Person/Organization

I have a Client object which will either have a Person object or Organization object in it. These Person objects or Organization objects might have relations to other objects independent of the Client object. In this case should I use a General…
andho
  • 1,166
  • 1
  • 15
  • 27
0
votes
1 answer

Rich Domain Model and form mapping

TLDR: How combine rich domain model with "heavy" setters with simple HTML form mapping? Problem occurs when setter of one property change other properties (directly or by using setters - this doesn't matter). Sample class for better explaining (in…
0
votes
1 answer

CQRS & PurchaseOrder AggregateRoot

i am new to CQRS & DDD and for a practice i am using MS WideWorldImporters database, at the moment i am stuck on purchase order placement command, to say the truth i don't know how it should look like, can you guide me? Should i have 1…
QuietNaN
  • 371
  • 1
  • 14
0
votes
1 answer

What is the correct domain model?

I am new to Object oriented design patterns. I have a basic idea of the domain model. However, I am stuck at the following problem. The problem is that I have a system that contains events and customers(both 1....*). Additionally, the events contain…
0
votes
1 answer

Use Enum in domain model (ORM) when the corresponding table has set values?

I have a table named job_class which has set values: This is the table definition: create table job_class ( job_class_code int NOT NULL PRIMARY KEY, job_class_name varchar(50) NOT NULL, ext_code varchar(10) NOT NULL ) It will always have…
srh
  • 1,661
  • 4
  • 30
  • 57
0
votes
3 answers

Valid domain model while using Automapper

I am using Jimmy Bogard's lovely Automapper to map my API model to the POCO classes (domain model). The API model does not contain certain attributes of the domain model which are necessary for the domain model to be in valid state. In this…
Satyajit
  • 1,971
  • 5
  • 28
  • 51
0
votes
1 answer

OpenAccessDomainService Executing OQL query is very slow

I have big problem with OQL query in OpenAccessDomainService. I have application with Silverlight client and RIA Web Service (OpenAccessDomainService), and I need to implement lazy loading approach. For example I created method getAnimalsLazy(string…
0
votes
1 answer

relation 1 a 1 error insert data

I have a relationship 1-1 domain model it my way package relation1a1 class Person { Home home String name String aPaterno String aMaterno } package relation1a1 class Home { static belongsTo = [person: Person] String cP …
D.Sanxhez
  • 137
  • 8
0
votes
1 answer

ASP.net Web API - Example pre-existing database Fluent NHibernate and Automapper

I am working through the ASP.net Web API 2 book (Git Hub) I am trying to use Fluent NHibernate and Automapper to connect to a database. The book uses a fresh database while my database is pre-existing and not necessarily controlled by good…
Daniel Gale
  • 643
  • 4
  • 13
0
votes
2 answers

Domain Model Class Diagram - What classes should i add?

I must create Domain Model Class Diagram of my Android application. The big problem is that my android app has arround 40-50 classes. Many of them are doing similar things. For example ImageMultiChoiceListener, VideoMultiChoiceListener or PhotoItem,…
user5549335
0
votes
0 answers

Inherited Implicit Operators in C# using CRTP

I have been working with MVC viewmodels for a little while now and previously have been using implicit conversion operators to convert to and from domain models. Currently I am trying to create a solution that uses a view model base class to define…
0
votes
1 answer

Domain Model and Contracts

I am modelling a DVD Rental Store: A Client gives its clientNumber to the System. The System checks whenever the given clientNumber is valid. The Client gives the name of the DVD he wants to rent. ... ...I will later have to form an association…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557