A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.
-3
votes
0answers
24 views
To identify the classes for uml diagrams? [on hold]
I want to implement a software engineering project based on "crime management system". The main modules are: visitors, users, administrator. The main events that are taking place are: registration, ...
2
votes
2answers
79 views
How to deal with data on the model specific to the technology being used?
There are some cases where some of the data on a class of the domain model of an application seems to be dependent on the technology being used. One example of this is the following: suppose we are ...
0
votes
1answer
94 views
How do you formulate the Domain Model in Domain Driven Design properly (Bounded Contexts, Domains)?
Say you have a few applications which deal with a few different Core Domains.
The examples are made up and it's hard to put a real example with meaningful data together (concisely).
In Domain Driven ...
4
votes
3answers
155 views
Architecting multi-model multi-DB ASP.NET MVC solution
I have an ASP.NET MVC 4 solution that I'm putting together, leveraging IoC and the repository pattern using Entity Framework 5. I have a new requirement to be able to pull data from a second database ...
1
vote
2answers
125 views
Validation and data persistence in a domain model
My (first and current) workplace (a .NET shop) suffers from an over-abundance of anemic domain models, to the extent that I don't really know how validation and data persistence should be handled in a ...
5
votes
2answers
107 views
Exposing domain models over API
I'm building a simple RESTful API for a web-based application I'm working on, and I'm wondering about the best way to go about exposing my domain models.
Let's say I have a User class and I want to ...
0
votes
3answers
189 views
Auto - incremental ID in Domain Object
I read a lot about auto-incremental id (guid, interlocked.increment, ObjectIdGenerator...) but don't find nothing for my situation.
In my domain model user ask to have an automatic progressive ...
1
vote
3answers
140 views
Does an in-code enumeration provide a stronger domain model than a static table?
Does an in-code enumeration provide a stronger domain model than a static database table?
As an example, say I have an Marble entity, with a Color attribute. The color attribute has a finite set of ...
2
votes
1answer
275 views
Do MVC web frameworks favor anemic domain model in order to avoid duplication?
Binding directly the form to your model helps a lot to get rid of boiler plate code, but that means that your model must have a getter/setter for each property otherwise it wouldn't be possible. ...
0
votes
0answers
96 views
Model design used in Zend Framework 1.8 Web application development
I am currently reading Zend Framework 1.8 web application development by Keith Pope. In this book an application called storefront which is a shopping cart is being built. But I am not able to ...
2
votes
2answers
175 views
NHibernate and complex domain model against a legacy database
I'm trying to refactor (actually, rewrite) an application which currently uses only stored procedures to access the database (hundreds of SPs). My goal is to use Nhibernate and follow a good design as ...
2
votes
1answer
216 views
How far to go with Domain Driven Design?
I've read a little about domain driven design and the usage of a rich domain model, as described by Martin Fowler, and I've decided to put it in practice in a personal project, instead of using ...
0
votes
2answers
150 views
How to salvage a business model from a mismatched database?
There is an application that involves billing enterprise customers for the services their customers utilize. The database schema does not properly reflect the business model. For instance, on a given ...
0
votes
1answer
99 views
What is the best way to represent quantity in stock in domain model?
A Transaction contains one or more LineItem. One LineItem has a relation with an Item. Every Item has a number field that represent quantity in stock.
Using this approach, every Transaction ...
3
votes
2answers
245 views
Single Responsibility principle VS KISS principle
Let's assume the modeling of User model in a context of a social network.
User concept is composed of two notions:
Authentication elements like userName/Password/Email etc...
Extra data information ...