Questions tagged [entity]

In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed. As the term has a very abstract and general meaning prefer to use this tag only in conjunction with other more specific tags.

In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed. The term does not apply to a specific technology but has a more abstract meaning.

An entity is one building block in an entity-relationship model (ERM) to describe how data are modeled in an information system.

Often used specific meanings for "Entity" on Stack Overflow

  • A class or instance of a class which is mapped to a relational database by Microsoft's Entity Framework
  • A data object in Apple's iOS Core Data Framework

Links

6421 questions
2
votes
1 answer

Symfony2 - Looking for entity class in wrong place?

I have two entities, User and Lesson. User is an extension of the Sonata User and is in Application\Sonata\UserBundle\Entity\User Lesson is in my own bundle 'LessonBundle' Each lesson is owned by a user, under the field tutor: class Lesson { …
Dan
  • 6,265
  • 8
  • 40
  • 56
2
votes
2 answers

SerializeObject adds unicode c#

I have a WCF service that returns database tables in JSON format. SeralizeObject adds unicode to my httpresponse, how can i remove this? Code: using (var db = new newTestDBContext()) { var query = from b in db.Roads …
user2049921
  • 81
  • 1
  • 8
2
votes
4 answers

SQL query to find False Negatives w.r.t Data Matching or Entity Resolution

Suppose I have two different ID's assigned for same record. For example RecordID | ID1 | ID2 -------------------- 1 | X | A 2 | X | B 3 | Y | C 4 | Y | C 5 | Y | D 6 | Z | E 7 | Z |…
Huzaifa
  • 1,111
  • 5
  • 20
  • 37
2
votes
3 answers

Why use Interfaces for domain entities?

What is the purpose of using interfaces for domain entities? In our project, we are using interface for domain entities. Inside the interface, there are only getter and setter methods, not even any domain logic. Is using an interface for entities…
magicbacon
  • 321
  • 2
  • 4
  • 19
2
votes
3 answers

Is a method in a JPA entity allowed to throw an Exception?

I have a problem with an @Entity I am trying to create. The problem arises when trying to test the class in Eclipse using an OpenJPA implementation (I have not tried others so not sure if it might work with them). My test case is simple enough in…
Milo Jasper
  • 57
  • 1
  • 5
2
votes
2 answers

Entity Framework Code First, Navigation Property between different contexts/databases

Hi I have 2 data contexts that maps different schemas on a SQL Server database, but then I need to create 1 sdf database file (SQL Compact) per schema and use the same data contexts, and I have some entities related like this: //context 1 class A { …
Pedro Simões
  • 237
  • 2
  • 10
2
votes
0 answers

entity framework and database default values workaround

I have to decide about an important item and I need your help. I'm facing an huge existing database with a lot of default values on nullable columns. The team has to build a new MVC4 application on top of it (in fact it is a rewrite of old VB6…
bvbiz
  • 41
  • 5
2
votes
1 answer

Using Drupal7 custom entities in views

I have created two custom entities using hook_entity_info in drupal 7.The entities is created for the given database tables. I am able to create a view for each of the entities separately.But want to create a view of both entities together.The…
2
votes
2 answers

LINQ-to-SQL update query

I'm having a problem with Link to SQL and updating a record, I think the problem is to with the current transaction based on the fact that I am looping through a connected data context: Using db = New PostcodeLookupModelContainer() Dim…
MAO
  • 99
  • 2
  • 16
2
votes
2 answers

Symfony2 building ManyToOne relationship in Entities

I have two entities in a OneToMany relationship, Perfil and IPerfil. Perfil can have several IPerfil's associated: > class Perfil { /** * @var integer $id * * @ORM\Column(name="id_perfiles", type="integer") …
g0ldan
  • 21
  • 4
2
votes
2 answers

Explicit Loading of child navigation properties with criteria

Using DBContext in EF5 - after filtering and partial loading based on criteria like a date range. I'm trying to produce a complete graph or tree of objects - Persons->Events where the only Events that are included are within a date range. All this…
2
votes
0 answers

ColdFusion 10.0 ORMSearch returns two separate queries: entity + score - Bug 3338790

I was perhaps wondering if anyone out there had a solution to ColdFusion 10.0 - Bug 3338790. Which, in short, causes ORMSearch to return an Array with two structures: entity and score. I cannot figure out how to combine these two arrays either…
jayron
  • 69
  • 7
2
votes
0 answers

"good enough" location field mapping to geographic heatmap in R

I'm trying to create a heatmap of users' location in various world regions in R, but the dataset I'm working with contained a free text location field for users to fill on their own -- hence the quality of place names varies quite a bit. I'm OK with…
serilain
  • 441
  • 4
  • 15
2
votes
1 answer

VHDL Entity not executing in simulator with unassigned 'U' inputs

I've run into this problem in a few places, and my best guess for why I am getting no output from a design entity (in this case a 4:1 mux) is that one of the inputs was unassigned (U's). So pretend this Mux is embedded within a lot of other…
Brittany
  • 33
  • 6
2
votes
1 answer

core data array as attribute

I want create attribute of "event" entity that will have a short list of events what the correct way to make it? I think the right way is just use array but how can I do it? if someone can give me code example it will be nice.
Dennis
  • 704
  • 1
  • 9
  • 25