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
243
votes
5 answers

In HTML I can make a checkmark with ✓ . Is there a corresponding X-mark?

Is there a corresponding X mark to ✓ (✓)? What is it?
nc.
  • 7,179
  • 5
  • 28
  • 38
141
votes
41 answers

Why do we need entity objects?

I really need to see some honest, thoughtful debate on the merits of the currently accepted enterprise application design paradigm. I am not convinced that entity objects should exist. By entity objects I mean the typical things we tend to build for…
Eric Z Beard
  • 37,669
  • 27
  • 100
  • 145
109
votes
9 answers

The type or namespace name 'Objects' does not exist in the namespace 'System.Data'

I am using entities, C# and SQL Server to create an n-tier app. I am creating some base classes common to all my DAL components. In this base class, i want to handle the connection state of the ObjectContext base class inherited by entities…
pencilslate
  • 12,958
  • 18
  • 58
  • 73
108
votes
3 answers

What is the difference between "LINQ to Entities", "LINQ to SQL" and "LINQ to Dataset"

I've been working for quite a while now with LINQ. However, it remains a bit of a mystery what the real differences are between the mentioned flavours of LINQ. The successful answer will contain a short differentiation between them. What is the…
Marcel
  • 15,039
  • 20
  • 92
  • 150
86
votes
2 answers

Why not use an IoC container to resolve dependencies for entities/business objects?

I understand the concept behind DI, but I'm just learning what different IoC containers can do. It seems that most people advocate using IoC containers to wire up stateless services, but what about using them for stateful objects like…
86
votes
6 answers

How do I unescape HTML entities in a string in Python 3.1?

I have looked all around and only found solutions for python 2.6 and earlier, NOTHING on how to do this in python 3.X. (I only have access to Win7 box.) I HAVE to be able to do this in 3.1 and preferably without external libraries. Currently, I have…
VolatileRig
  • 2,727
  • 6
  • 32
  • 44
77
votes
10 answers

Convert XML/HTML Entities into Unicode String in Python

I'm doing some web scraping and sites frequently use HTML entities to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode type? For example: I get back: ǎ which represents…
Cristian
  • 42,563
  • 25
  • 88
  • 99
38
votes
8 answers

JPA 2.0: Adding entity classes to PersistenceUnit *from different jar* automatically

I have a maven-built CDI-based Java SE app, which has a core module, and other modules. Core has the persistence.xml and some entities. Modules have additional entities. How can I add the entities to the spotlight of the persistence unit? I have…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
36
votes
5 answers

HTML5: which is better - using a character entity vs using a character directly?

I've recently noticed a lot of high profile sites using characters directly in their source, eg: “Hi there” Rather than: “Hi there” Which of these is preferred? I've always used entities in the past, but using the…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
35
votes
2 answers

What is ?

In html made by fckeditor i find the following character: What is this character?
blub
  • 2,146
  • 4
  • 20
  • 19
34
votes
7 answers

What Belongs to the Aggregate Root

This is a practical Domain Driven Design question: Conceptually, I think I get Aggregate roots until I go to define one. I have an Employee entity, which has surfaced as an Aggregate root. In the Business, some employees can have work-related…
jlembke
  • 13,217
  • 11
  • 42
  • 56
34
votes
4 answers

how to sort an entity's arrayCollection in symfony2

I have an entity "container" with this property /** * @ORM\OneToMany(targetEntity="BizTV\ContentManagementBundle\Entity\Content", mappedBy="container") */ private $content; the property is an array collection... public function __construct() { …
Matt Welander
  • 8,234
  • 24
  • 88
  • 138
24
votes
4 answers

Core data: can NSFetchedResultsController fetch two different entities?

I am working on an iPhone app, and in a particular view I need to load two different entities: One that will populate a UITableView, and another that will populate a UITextView. Is it possible to fetch both properties using a single…
futureshocked
  • 2,105
  • 4
  • 23
  • 32
24
votes
3 answers

Programmatically loading Entity classes with JPA 2.0?

With Hibernate you can load your Entity classes as: sessionFactory = new AnnotationConfiguration() .addPackage("test.animals") .addAnnotatedClass(Flight.class) …
wen
  • 3,782
  • 9
  • 34
  • 54
20
votes
5 answers

Do you have a common base class for Hibernate entities?

Do you have a common base class for Hibernate entities, i.e. a MappedSuperclass with id, version and other common properties? Are there any drawbacks? Example: @MappedSuperclass() public class BaseEntity { private Long id; private Long…
cretzel
  • 19,864
  • 19
  • 58
  • 71
1
2 3
55 56