Questions tagged [entities]

Entity-relationship model (ER model for short) is an abstract and conceptual representation of data.

In software engineering, an entity-relationship model (ER model for short) is an abstract and conceptual representation of data. Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams or ER diagrams.

832 questions
19
votes
1 answer

LINQ .Take() returns more elements than requested

We have a simple LINQ-to-Entities query that should return a specific number of elements from particular page. The example of the request can be: var query = from r in records orderby r.createdDate descending select new…
Denis Mazourick
  • 1,425
  • 2
  • 13
  • 24
17
votes
7 answers

Doctrine - Add default time stamp to entity like NOW()

Following the Doctrine guidelines I understand how to set a default value for an Entity, but what if I wanted a date/time stamp? http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/faq.html My problem is my database has a…
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
16
votes
3 answers

In DDD, what are the actual advantages of value objects?

I have gotten so far that I understand entity objects have an ID while value object have not, but in the most common example you have the person entity that have a address value object attached to it. What is the big advantage of creating a separate…
terjetyl
  • 9,497
  • 4
  • 54
  • 72
16
votes
3 answers

Disable decoding of HTML entities in Chrome developer tools

I am working in Chrome developer tools and looking for a way to show HTML entities by default. The view I see is this: Whereas, the view I need is this: Does anybody know how I can enable the view I need? I know there is a theme engine for…
16
votes
4 answers

Sf2 : using a service inside an entity

i know this has been asked over and over again, i read the topics, but it's always focused on specific cases and i generally try to understand why its not best practise to use a service inside an entity. Given a very simple service : Class Age { …
LauDem
  • 458
  • 1
  • 6
  • 19
16
votes
2 answers

Functional Programming + Domain-Driven Design

Functional programming promotes immutable classes and referential transparency. Domain-driven design is composed of Value Object (immutable) and Entities (mutable). Should we create immutable Entities instead of mutable ones? Let's assume, project…
Mik378
  • 21,881
  • 15
  • 82
  • 180
15
votes
4 answers

Should Entities in Domain Driven Design and Entity Framework be the same?

I have started using Entity Framework Code First for the first time and am impressed by the way in which our greenfield application is being built around the domain rather than around the relational database tables (which is how I have worked for…
15
votes
2 answers

Android string encoding and html entities converting

There is a String in Android Java. How do I change it to another given encoding and replace HTML-entities such as & with &? This is so that international symbols can be displayed correctly.
Tramway11
  • 419
  • 3
  • 9
  • 20
13
votes
3 answers

DDD navigation to entities inside aggregate root via composite identity

I have an aggregate root Products which contains a list of entities Selection, which in turn contains a list of entities called Features. The aggregate root Product has an identity of just name The entity Selection has an identity of name (and its…
morleyc
  • 2,169
  • 10
  • 48
  • 108
13
votes
2 answers

Extending entities in Symfony2 with Doctrine2

I'm having trouble finding a way to appropriately extend an Entity across bundles in Symfony2 using Doctrine2 as the ORM. Currently there are three methods that I've found to extending entities in Symfony2 using Doctrine2 as the ORM. Mapped…
Jgarib
  • 166
  • 1
  • 1
  • 6
12
votes
5 answers

C++: Designing a component-based entity system - advanced problems

In my game engine, that is written in C++, I've moved away from the classical hierarchical entity system and build up a component-based one. It works roughly in this way: An entity is merely a container for components. Some example components are:…
Jarnstrom
  • 121
  • 1
  • 1
  • 3
12
votes
9 answers

Special Characters in XML

I am creating a left navigation system utilizing xml and xsl. Everything was been going great until I tried to use a special character in my xml document. I am using » and I get th error. reason: Reference to undefined entity 'raquo'. error…
BillZ
  • 247
  • 3
  • 4
  • 9
11
votes
4 answers

How to make all entities access:internal instead of public in EDMX?

I'd like my Entity Framework model to generate entities with internal access modifier, instead of public. I use the EF model in a library and I want only a single class (some controller) to be accessible from outside. Is there any simple way to…
Kornelije Petak
  • 9,412
  • 15
  • 68
  • 96
11
votes
5 answers

Unescaping XML entities using XmlReader in .NET?

I'm trying to unescape XML entities in a string in .NET (C#), but I don't seem to get it to work correctly. For example, if I have the string AT&T, it should be translated to AT&T. One way is to use HttpUtility.HtmlDecode(), but that's for HTML.…
Philippe Leybaert
  • 168,566
  • 31
  • 210
  • 223
11
votes
1 answer

UserInfo Dictionaries on CoreData

What does this part of Apple core data documentation means? User Info Dictionaries Many of the elements in a managed object model—entities, attributes, and relationships—have an associated user info dictionary. You can put whatever information you…
drasick
  • 280
  • 4
  • 14
1
2
3
55 56