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
7
votes
3 answers

Opinion requested: for static values, is it better to use Enums or Entities?

I'm trying to solve a dilemna that has been nagging me for the last few months. My colleagues and I completely disagree on a technical problem, and I would like our beloved community's opinion on the matter. In a nutshell: Is it preferable to use…
Antoine Jaussoin
  • 5,002
  • 4
  • 28
  • 39
7
votes
7 answers

HTML entities and charset in IE

I am displaying html entity ✓ (a check mark: ✓) in an html document that uses iso-8859-1 for the character set. In Firefox, it displays as a check mark. In IE, it displays as a square box. Switching to UTF-8 doesn't seem to make a…
7
votes
4 answers

Use JavaScript regex to replace numerical HTML entities with their actual characters

I'm trying to use JavaScript & regex to replace numerical HTML entities with their actual Unicode characters, e.g. foo's bar → foo's bar This is what I got so far: "foo's bar".replace(/&#([^\s]*);/g, "$1"); // "foo39s bar" All that's left…
alfonso
  • 73
  • 1
  • 3
7
votes
1 answer

jQuery Escaping HTML from a Textarea

I want to escape HTML tags to entity names, taking text from a textarea and putting the result in a second textarea such that: becomes <mytag> I'm using .html() and .text() going back and forth OK. My problem is dealing with the…
Wayne
  • 501
  • 6
  • 7
7
votes
1 answer

Dependencies in forms Symfony2

I'm working on a webapplication in Symfony2. I came to a point in which I need some advice/explanation from some one more advanced in Symfony. I have a part of my database that is set up as follows: I have cards that belong to a card attribute set…
Dion Pieters
  • 103
  • 7
7
votes
5 answers

DDD: Where to create entity objects?

I have three entities that must interact: User, SupportTicketand PhoneConversation. When someone calls in requesting help, the User should have a SupportTicket assigned to him, with a PhoneConversation assigned to the Ticked describing the call. My…
ciscoheat
  • 3,719
  • 1
  • 35
  • 52
7
votes
1 answer

How to make Nokogiri transparently return un/encoded Html entities untouched?

How can I use Nokogiri with having html entities (like German umlauts) untouched? I.e.: # this is fine node = Nokogiri::HTML.fragment('

ö

') node.to_s # => '

ö

' # this is not node = Nokogiri::HTML.fragment('

ö

') node.to_s…
svenfuchs
  • 683
  • 6
  • 11
7
votes
4 answers

DOMDocument::loadXML vs. HTML Entities

I currently have a problem reading in XHTML as the XML parser doesn't recognise HTML character entities so:
casr
  • 1,166
  • 2
  • 11
  • 17
7
votes
1 answer

DDD: what's the use of the difference between entities and value objects?

Entities and value objects are both domain objects. What's the use of knowing the distinction between the two in DDD? Eg does thinking about domain objects as being either an entity or value object foster a cleaner domain model?
koen
  • 13,349
  • 10
  • 46
  • 51
7
votes
4 answers

Symfony2 Doctrine doctrine:generate:entities never works

I am relatively new to Symfony2 and so far love it - except for this problem that I keep coming up against. The dreaded (for me): doctrine:generate:entities When I started my first Symfony2 project I could not get that command working and ended up…
someuser
  • 2,279
  • 4
  • 28
  • 39
7
votes
4 answers

How to indicate a columns as NOT NULL in a view?

I'm trying to use a view to create an ADO.NET entity using a view. However, that view does not have a single column that is NOT NULL. One thing that occurred to me was to create a NOT NULL column on the view to use as a 'primary key' for the view.…
Paulo Santos
  • 11,285
  • 4
  • 39
  • 65
6
votes
3 answers

Get image url from twitter api entity parameter php

I'm attempting to get and display images posted in a tweet with php via the entities parameter. I have include_entities in my url and can see the entities in the returned json. In my foreach loop, I am doing the following: foreach($results as…
Michael
  • 400
  • 3
  • 12
6
votes
3 answers

Polymorphic Associations in .NET

How do I effectively/efficiently create polymorphic associations in .NET? That being said, I have a few more granular questions that I would love to see as part of the broader answer. Technologies .NET 4.0 ASP.NET MVC 3 MS SQL 2008 C#…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
6
votes
3 answers

AcceptChanges cannot continue because the object's key values conflict with another object in the ObjectStateManager

The changes to the database were committed successfully, but an error occurred while updating the object context. The ObjectContext might be in an inconsistent state. Inner exception message: AcceptChanges cannot continue because the object's key…
Thomas Hansen
  • 193
  • 2
  • 9
6
votes
1 answer

core data : differences between managed object and entities?

i would like to understand a bit more Core Data, why do we "fetch" and search for entities while the entities are "inside" managed objects? For example : NSManagedObjectContext *moc = [self managedObjectContext]; NSEntityDescription…
Paul
  • 6,108
  • 14
  • 72
  • 128