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

Fuzzy Logic Domain Model

I've been working on a project involving Fuzzy Logic Controller, and so far everything has gone well. I've successfully modeled and implemented Norms (S and T norms), complements, fuzzy propositions and membership functions. However, I now face the…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
0
votes
2 answers

Domain model aggregates

I've just read a chapter about aggregates and found that I misunderstand something. We have three objects: Member, Item, Bid. Here is code snippet from the book: public class Member { public string Id {get; set;} ... } public class Item { …
Danil
  • 1,883
  • 1
  • 21
  • 22
0
votes
2 answers

Dropdown/Select list of Grails SpringSecurity property?

I am currently working on a Grails project and would like to know the best way of showing a select list of objects from the Spring Security domain model: I know how to create a select list but I just want to find out the best way within grails to…
user723858
  • 1,017
  • 3
  • 23
  • 45
0
votes
3 answers

Domain model to JSON - issue with deep serialization

I am using Hibernate 4.1 and Spring 3.1. Consider the following User class having references to other object including self. All the hibernate mappings I have defined are LAZY so will load the reference objects only when I use them in the jsp or…
Sharad Yadav
  • 2,951
  • 5
  • 20
  • 18
0
votes
2 answers

Creating multiple models

I'm using Zend Framework and implementing Domain Model. I have Models, Mappers and DbTables. Suppose we should fetch multiple rows from database or fetch form data where we should create multiple models and populate that models from database rows or…
Tigran Tokmajyan
  • 1,937
  • 7
  • 25
  • 36
0
votes
1 answer

Enterprise java app architecture. Dynamic domain model

I wonder what is the best way to implement dynamic domain model persisted in SQL database? Saying dynamic domain model I mean such model when user can change "class" of object by adding or removing properties. For example: little internet shop…
Alex Povar
  • 4,890
  • 3
  • 29
  • 44
0
votes
1 answer

MVC Multiple Databases in one single domain model

I am writting an app based on Steve Sanderson's Pro Asp .Net MVC Framework, which uses a data modeling like described on Sports Store app on that book. My app works well, I use Castle project as IOC but I have two databases. The first one stores…
Bodyslicer
  • 21
  • 5
0
votes
2 answers

putting complex, multi-domain related logic: in Service layer or in model itself?

I'd like to apply Domain Driven Design principles in my project but couldn't determine what I should do with the business logic of dependent models. For example, suppose this scenario: I have Person and Car domain models. Each Person is suitable…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
0
votes
1 answer

Where is best to put the logic for coupled domain models?

A user requests latest news , the news get data from multiple sources (posts, users , photos, comments) . How would you model the news? Is it good to have a gateway that couples these tables + a service that gets the data from the coupled gateway…
-1
votes
1 answer

In Event Sourcing, How to make changes in database using arrays and no ORM?

I have a class like this: class Community{ public List Moderators = new(); public void AddModerator(Moderator moderator) => Moderators.Add(moderator) } When i run the replay for all events from my EventStore, its ok to…
-1
votes
2 answers

Domain Model modelling how complex should the diagram be/become?

I am incredibly new to Domain Models and I am trying to build up my understanding. I have created this domain model around a scenario which I will provide. I feel this model is simple and as a result, feels incorrect and might be missing elements I…
Krellex
  • 613
  • 2
  • 7
  • 20
-1
votes
2 answers

Can we use Domain model written in Scala in a Java/Spring Application?

Is there a way to use a Domain Model written in Scala from a Spring+Java+Maven project ? Asking this after going through Scott Wlaschin's video on Functional Domain Modelling. Would love to implement some of it using Scala and bring the power of…
Somjit
  • 2,503
  • 5
  • 33
  • 60
-1
votes
1 answer

ASP.NET Core Entity Framework Core inheritence

There is a model class called Review. ReviewModel is used from StoreModel and Menu model. In StoreModel.cs [Table ("Stores")] public class StoreModel { [Key] public int Id { get; set; } public string StoreName { get; set; } …
softmarshmallow
  • 1,034
  • 2
  • 16
  • 31
-1
votes
1 answer

Domain Model Diagram needs explanation

I'm trying to understand Domain Model Diagram and found this example diagram, I need some more help to understand this Domian Model Diagram, Can anyone provide me links to tutorials on this or provide some guidance? Can a boundary can be taken as a…
Roshana
  • 357
  • 1
  • 3
  • 17
1 2 3
23
24