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
11
votes
1 answer

LINQ to Entities does not recognize the method 'System.String get_Item(System.String)' method

I've looked at the various solutions here but none of them seem to work for me, probably because I'm too new to all this and am groping in the dark a bit. In the code below, the object "appointment" contains some basic LDAP information. From a list…
user2283231
  • 125
  • 1
  • 1
  • 6
11
votes
4 answers

Get array/list of entities from Doctrine

This is probably pretty simple, but I can't find a way to do this. Is there any way to get a list of class names of the entities that Doctrine manages? Something like: $entities = $doctrine->em->getEntities(); where $entities is an array with…
celestialorb
  • 1,901
  • 7
  • 29
  • 50
11
votes
3 answers

Symfony2/Doctrine2: Generate entities that are outside a bundle

I'm trying to generate entities for my Symfony 2application. The entities will be shared by several bundles (and maybe several applications), and thus I do not want them to belong to a bundle. I want them to be in the src/MyApp/Entity folder. I…
David
  • 33,444
  • 11
  • 80
  • 118
10
votes
2 answers

Symfony2 doctrine:generate:entities throw Syntax Error?

when i am using the symfony2 shell and trying to run doctrine:generate:entities [MyBundle] --path='src' or doctrine:generate:entities [MyBundle] i got this error [Syntax Error] Expected…
Ahmad Zain
  • 179
  • 1
  • 2
  • 8
10
votes
3 answers

How to parse badly formed XML in Java?

I have XML that I need to parse but have no control over the creation of. Unfortunately it's not very strict XML and contains things like: This won't parse & contains an ampersand. The javax.xml.stream classes don't like this at all,…
izb
  • 50,101
  • 39
  • 117
  • 168
10
votes
5 answers

LINQ2SQL: How to modify fields values when loading anonymous entities?

!!! Please do not redirect to this article, as it does not solve the problem described below. Let's say we have such table in database: SomeTable ID (int) DT (datetime) We have configured a Linq2Sql data context. And we have configured an entity…
Dima
  • 1,717
  • 15
  • 34
9
votes
2 answers

javax.validation.Validation multiple instantiation Vs Reusing single Validator instance

I am using javax.validation.Validation to validate jpa entities. I am always validating against the same Entities. I would like to know if it is better to use one Validator for all validations or to instantiate a new Validator each time I…
aruuuuu
  • 1,605
  • 2
  • 22
  • 32
9
votes
3 answers

html entities in a javascript alert?

I have a string coming from a XML (which I can't edit) and I'd like to print it trough an alert in javascript. Example of my string: This is à string And I need to print in an alert: This is à string is there a js html decode?
markzzz
  • 47,390
  • 120
  • 299
  • 507
9
votes
1 answer

Entity mapping in a Symfony2 choice field with optgroup

Suppose to have an entity in Symfony2 that has a field bestfriend, which is a User entity selected from a list of User entities that satisfy a complex requirement. You can render this field in a form by specifying that it is an entity field type,…
JeanValjean
  • 17,172
  • 23
  • 113
  • 157
8
votes
2 answers

Sequences with Dynamic Entities in EclipseLink

I'm trying to get sequences with Dynamic Entities to work in EclipseLink and I need some help. I'm defining my dynamic entity like the following: EntityManagerFactory emf = Persistence.createEntityManagerFactory("default"); EntityManager em…
rpvilao
  • 1,116
  • 2
  • 14
  • 31
8
votes
3 answers

Is there a way to keep entities intact while parsing html with DomDocument?

I have this function to ensure every img tag has absolute URL: function absoluteSrc($html, $encoding = 'utf-8') { $dom = new DOMDocument(); // Workaround to use proper encoding $prehtml = "
dev-null-dweller
  • 29,274
  • 3
  • 65
  • 85
8
votes
3 answers

codeigniter: where do entities go?

I was wondering what should I do with my entities? For example, a class named Articles, with a few datamembers (name/title/date) and getters & setters. I could add these to my Articles datamember, but it's better practice to seperate those. So what…
user393964
8
votes
2 answers

Create tables with entities - Doctrine Symfony2

I created several classes without using the php command php app/console doctrine:generate:entity, directly I created and mapping the php classes in the folder MyBundle/Entity. What is the command to generate these classes as Doctrine entities and…
Alex
  • 93
  • 1
  • 1
  • 5
8
votes
1 answer

SqlResultSetMapping columns as and entities

I am really confused, how does column resultset mapping work? What am I mapping when I use columns instead of entities? Look at this example... Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS…
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195
8
votes
5 answers

Java - convert named html entities to numbered xml entities

I'm looking to convert an html block that contains html named entities to an xml compliant block that uses numbered xml entities while leaving all html tag elements in place. This is the basic idea illustrated via test: @Test public void…
Dave Maple
  • 8,102
  • 4
  • 45
  • 64
1 2
3
55 56