The entity tag has no wiki summary.
1
vote
1answer
50 views
PHP - Repository matrix pattern?
I'm trying really hard to refactor some of my legacy code in the project using best practices and design patterns + DDD so I'd love some feedback on an issue I'm currently having.
Let's assume that I ...
0
votes
1answer
111 views
Applying DDD to a simple app with a configuration twist
I’m using the light-weight PHP Fat-Free Framework as a base to form a simple MVC based app with DDD philosophy for the Model layer. I’m aware that DDD is most suitable or enterprise solutions and that ...
-4
votes
1answer
58 views
How do we call database table entity in Java? [closed]
For each database table, I create an entity (object) which contains all columns of the database as Class fields.
Now, how do we call these entities in Java? I could not find an official term so I ...
1
vote
0answers
30 views
How can I define shared text entities in XHTML files?
I have an XHTML document that defines several text entities in its internal DTD. I want these entities to be available in other XHTML documents without having to cut and paste the internal DTD ...
1
vote
3answers
165 views
Should entities be accessible from all layers of an application? [closed]
I am googling this issue now for weeks, but cannot find a good discussion.
It boils down to this:
As POCO entities used in a dbContext are in fact a definition of the database, shouldn't they be ...
0
votes
0answers
45 views
IUserType like feature inEntity Framework
I'm working on a new project, we want to build a new, modern, application working with our legacy data sources, and especially, legacy databases. We want to use an ORM and we want advanced features so ...
2
votes
2answers
424 views
“Clean Code”: How to organize named queries?
Few days ago I started to read Robert C. Martin "Clean Code" book and it encouraged me to look more detailed at my code. After I opened eclipse I saw this:
...
0
votes
1answer
70 views
Relationships in a Chen ERD
I am working on a Chen ERD to model our organizations merchandise. Our central entity is a Style. We have supplemental entities of Color and Season.
I am defining our assortment as the ...
9
votes
3answers
1k views
Entity Framework Entities - Some Data From Web Service - Best Architecture?
We are currently using Entity Framework as an ORM across a few web applications, and until now, it has suited us well as all our data is stored in a single database. We are using the repository ...
0
votes
3answers
147 views
Modeling a Student Application/Committee Relationship
I'm developing an ERD for a graduate student manager program (it's for a university class, so it's a fairly trivial implementation).
In this snippet of the model, I'm trying to work out the ...
1
vote
1answer
134 views
Complex fetching of Domain Objects
Usually whenever I want to fetch an aggregate root by ID I just use some type of Repository::findByID(...) function
Whenever I started with DDD I thought factories where just a pattern to build new ...
7
votes
2answers
4k views
Entity to DTO Usage
Been trying to come up with a flow for a basic tiered web application, and have been reading conflicting information online. What I'm trying to figure out is if there is an advantage to still using ...
4
votes
1answer
901 views
Unique Value Object vs Entity
Trying to convert some entities into value objects I am stuck in a case where what seems a value object must be unique within an aggregate.
Suppose we have a Movie entity which makes the root of an ...
2
votes
1answer
103 views
How do I manage multiple relationships from a software design perspective?
How do I go about managing projects when there are two fundamental relationships that need to be maintained? The most obvious example that I can think of would be a firm doing some kind of ...
0
votes
1answer
69 views
OO Design: hint EntityManager to preload some datasets
say I have an EntityManager that can read(PK) a dataset from the DB and return it.
I have an application that will process multiple records, iterate over them and for each, use the EntityManager to ...
1
vote
1answer
191 views
ORM: Keep entities coherent in a cache or retrieve entities each time?
We have a tricky question in a project using Java & Hibernate, with a model containing bi-directional relationships.
As it's a small project with few users, few entities, and few rows involved in ...
2
votes
2answers
4k views
When should we use weak entities when modelling a database?
This is basically a question about what are weak entities? When should we use them? How should they be modeled?
What is the main difference between normal entities and weak entities? Does weak ...
0
votes
2answers
94 views
How do you handle objects that need custom behavior, and need to exist as an entity in the database?
For a simple example, assume your application sends out notifications to users when various events happen. So in the database I might have the following tables:
TABLE Event
EventId ...
1
vote
3answers
249 views
Aggregate root & Repository dilemma
I am in a big dilemma here.
I have a League, Team and Player entities. I have created a repo for the league only as a Team cannot exists without a League. At first I had bounded the players only with ...
7
votes
4answers
1k views
Accessing Repositories from Domain
Say we have a task logging system, when a task is logged, the user specifies a category and the task defaults to a status of 'Outstanding'. Assume in this instance that Category and Status have to be ...
4
votes
3answers
604 views
Appropriate use of SQL CLR
We have some back end processes that runs* on our sql server (SQL Server), they involve processing claims. This requires both data manipulation (biz logic) and data read/write to tables. The biz ...
2
votes
2answers
214 views
Domain integrity check in application
Is it better to check for allowed domain values on the frond end or let the database engine handle the domain integrity. For example If you have a data entry form for employee, is it better to check ...
3
votes
4answers
366 views
Entity and pattern validation vs DB constraint
When it comes to performance:
What is the better way to validate the user input?
If you think about a phone number and you only want numbers in the database, but it could begin with a 0, so you will ...
2
votes
2answers
917 views
Entity System - interaction between systems
I am studying the Entity System architecture philosophy. As I have read about it, a typical entity system has:
1) Entities - which are merely ID tags which have a number of components
2) Components ...
0
votes
2answers
502 views
Encoding issues from MySQL database to PHP page
So I've been working on a small, small side project to learn a bit more about PHP database interactions. I bought a small, cheap database of "Inspirational Stories" and set to work on turning it into ...
3
votes
1answer
198 views
CMP Entity Beans as a “naive” ORM solution
I was browsing through this talk about "Historically Bad Ideas" over the history of Computer Science, and found an interesting presentation about the rise & fall of the Java Enterprise ...