domain-model Questions

4

Solved

In applying the Data Mapper pattern, the model (Domain Model in my case) is responsible for business logic where possible, rather than the mapper that saves the entity to the database. Does it see...
Wallraff asked 9/5, 2014 at 16:15

2

Solved

Which of the following methods is considered the recommended way of storing data in grails for the duration of a users session? Store a bunch of individual variables in the actual session. ...
Pica asked 25/1, 2014 at 4:27

3

Solved

for example, I have a user table, to be layer-ing, I create such POJOs: UserEntity.java UserDao.java UserBO.java (business object, domain model?) UserService.java (for service layer) what's t...
Hellraiser asked 24/1, 2014 at 18:20

3

Solved

I am currently developing a Grails Application and I am working with the Spring Security and UI plug-ins. I have created the relationship between the User Class and another Area Class that I have w...
Kanara asked 22/10, 2012 at 13:14

4

Solved

By the way - with reference to data modelling I'm referring to logical or conceptual data models - not physical ones. The question came up during a discussion at work; naturally I leapt to Wikiped...

1

Solved

I'm trying to work effectively with DDD and Doctrine2 on a project with lot of business logic. I understand that we need decouple the domain objects from other concepts related to the system, i.e....
Bromley asked 27/8, 2013 at 8:14

1

Solved

I stumbled upon the following two articles First and Second in which the author states in summary that ORM Entities and Domain Entities shouldn't be mixed up. I face exactly this problem at the mo...
Appraisal asked 7/8, 2013 at 17:9

1

Solved

According to wikipedia they seem to be the same thing, but they each have different pages. Domain Model Conceptual Model On the conceptual model page it says these two things: A Conceptual mode...
Semolina asked 31/5, 2013 at 9:44

1

I'm having some difficulty figuring out how the Aggregate Root will track changes on child entities. Let say I have an aggregate: Order (root) OrderLineItem With the Order class being the a...

3

I have been programming in PHP for several years and have in the past adopted methods of my own to handle data within my applications. I have built my own MVC in the past and have a reasonable und...

2

Solved

I am using entity framework in my latest ASP.NET MVC 3 project. As it is DB first, the entity framework generates Database models. In my service (business) layer I Scaffold (MvcScaffolding) t...

7

Solved

Been watching some Greg Young videos lately and I'm trying to understand why there is a negative attitude towards Setters on Domain objects. I thought Domain objects were supposed to be "heavy" wit...
Davila asked 15/12, 2010 at 15:33

4

Solved

I'm looking for some advice on how much I should be concerned around avoiding the anemic domain model. We are just starting on DDD and are struggling with analysis paralysis regarding simple design...

2

Solved

I have been reading the book "SQL Antipatterns: Avoiding the Pitfalls of Database Programming" especially around the magic beans anti pattern. In it shows a diagram decoupling activerecords by usin...

2

Solved

Suppose I have a complex system where there large trees of people. Simple thoughts are employees / manager relationship, many employees report to one manager. Now in addition to manager there are s...

1

I'm designing a system in which posts/discussions between users can be upgraded to become tickets. At one particular place I'm trying to create a one-to-one optional relationship but am running int...
Ivett asked 7/10, 2011 at 8:8

1

Solved

I am developing a web application which has a typical layered architecture: a DAO layer that retrieves domain model objects from a database; this layer communicates with the service layer which...
Sandblast asked 13/7, 2011 at 20:14

4

Solved

I've written myself a nice simple little domain model, with an object graph that looks like this: -- Customer -- Name : Name -- Account : CustomerAccount -- HomeAddress : PostalAddress -- Invo...
Hartmann asked 2/6, 2011 at 15:31

3

Solved

I'm building an ORM, and try to find out what the exact responsibilities of each pattern are. Let's say I want to transfer money between two accounts, using the Unit Of Work to manage the updates i...

6

Solved

I had a discussion at work regarding "Inheritance in domain model is complicating developers life". I'm an OO programmer so I started to look for arguments that having inheritance in domain model w...
Johppa asked 23/11, 2010 at 8:48

3

Solved

We're working on a new project (re-writing existing app), and I'm running into problems with my domain model / repository design. Here is a (simplified) version of two key portions in our domain m...
Convexoconvex asked 26/11, 2010 at 1:29

2

Is it reasonable to mix view models with domain models? So i.e. the view model object contains some domain model objects (not the other way around!)
Holley asked 22/6, 2010 at 15:31

3

Solved

I've been reading up on AutoMapper because of a response to one of my earlier questions here. It says that AutoMapper flattens complex domain models, but I need something that does the opposite. I ...

3

Solved

I have a persistence ignorant domain model that uses abstract repositories to load domain objects. The concrete implementation of my repositories (the data access layer (DAL)) uses entity framewor...
Romina asked 26/1, 2010 at 11:44

3

Solved

Entities: Team <-> TeamEmployee <-> Employee Requirements: A Team and an Employee can exist without its counterpart. In the Team-TeamEmployee relation the Team is responsible (parent) [us...
Isabellisabella asked 18/12, 2009 at 14:40

© 2022 - 2024 — McMap. All rights reserved.