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
2 answers

ADO Entity hierarchical self referencing

I have a self referencing table named categories that has a parentcategoryid column that is nullable. When I added the table to the entity designer it created two navigation properties for this relationship and I named one ParentCategory (the zero…
MvcCmsJon
  • 609
  • 7
  • 12
2
votes
1 answer

Apache HttpClient return entity with length -1

I'm using the fundamental http request with the same URL. Sometimes it return an entity with length -1. While the response status is OK and the entity is not null. I run the program for about 10 times, it can work 2 times randomly while the other…
Feng Yi
  • 51
  • 3
2
votes
1 answer

Entity versus Model

I was tidying up some classes in my com.business.model package and realised every one of them was either directly annotated @Entity or was attached to one (I'm using Morphia). It occurred to me that the classes should actually be put in a…
jmkgreen
  • 1,633
  • 14
  • 22
2
votes
2 answers

Equal entity objects but with non-equal attributes - do they exist in single-threaded/single-db applications?

carA = carRepository.load(1); carB = carRepository.load(1); carA == carB; // true carA.changeColor(red); carB.changeColor(blue); carA == carB; // true Equal entity objects but with non-equal attributes - do they exist in single-threaded/single-db…
j-a
  • 1,780
  • 1
  • 21
  • 19
2
votes
1 answer

How to get half width and half height from a body in jbox2d

So I have Body body that is a rectangle. How do I get its half width and half height?(I could not find an answer anywhere else)
me me
  • 778
  • 2
  • 7
  • 18
2
votes
2 answers

"Cannot add an entity that already exists" while deleting and recreating record with LINQ

While trying to delete a record in a database and recreate it afterwards, using LINQ, I get the error: Cannot add an entity that already exists. Although the record is deleted. I am initialising my Sales_header object with data I get from a LINQ…
bart_dp
  • 45
  • 2
  • 11
2
votes
4 answers

BackgroundWorker for implementing "Search as you type" Combobox

I have created a code for my combobox, that can search addresses in a very large table on Sql Server with the help of stored procedure (i'm working with Entity framework). My stored procedure returns 10 hits and my code fills the combobox with…
Vladimir
  • 75
  • 8
2
votes
3 answers

EF: Should entities have business logic?

I was wondering, should the entities have the capability to save changes to the context? Or have business logic that relates to that particular entity? For example: ActionResult ResetPassword(UserViewModel viewModel) { var user =…
Karan
  • 14,824
  • 24
  • 91
  • 157
2
votes
1 answer

Entity manager - "cloud ready", "graph", "self validating"

I'm looking for an "entity manager" with the following features (see list). It seems strange to me that there are so many software projects that, in their core, are UI and business rules over a clever entity management, but I haven't seen a single…
Ran Biron
  • 6,317
  • 5
  • 37
  • 67
2
votes
2 answers

virtual property null when retrieving a newly inserted item

I'm using EF4.x, Code First and Castle Windsor for DI. My problem: certain virtual properties are coming back null when retrieving a newly inserted entity. I'm new to this so please forgive my ignorance on how everything works. A very simple example…
2
votes
1 answer

Doctrine 2 entity association does not set value for foreign key

I'm encountering a problem with a Doctrine 2 entity association. I have a User entity and an Agency entity. One Agency can employ multiple Users (the entities are simplified to show only my problem) User Entity /** * @Entity *…
Andreas Linden
  • 12,489
  • 7
  • 51
  • 67
2
votes
1 answer

'fi' displaying incorrectly in database

I have a mySQL database with the following e.g. Microeconomics. The ‘theory of the ï¬rm’ or: Resource allocation modiï¬cations. For some reason, the text that has been input (through CKEditor), has been changed so any instances of fi are in the…
2
votes
0 answers

eclipselink and postresql large objects on Glasshfish

I have a trouble whit eclipselink and postresql I use Glassfish 3.1.2 and his eclipselink for connect to a postgresql database with persistence, in my table I have an postresql large object file that in my entity is convert into bytearray with @lob…
max
  • 21
  • 3
2
votes
1 answer

How to quickly update an ADO Entity?

I have an entity that has so many properties that I don't want to have to manually do something like public void Update(Contact cont) { using (var ctx = new DatabaseEntities()) { var res = from n in ctx.Contacts …
Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81
2
votes
1 answer

attaching an entity with a related entity to a new entity framework context

Im trying to get my head around attaching an entity with a related entity to a new context when I want to update the entity. I have a Person Table (Generalised to Personnel), which has a LanguageID field. This field is linked as a FK via the EF to…
Sean
1 2 3
99
100