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

How to get original values of an entity in Entity Framework?

In EF 4.0, if I understand it right, there are two type of values in Entity : current values and original values. We can set original values by calling ApplyOriginalValues(TEntity) method but how to get original values ?
JatSing
  • 4,857
  • 16
  • 55
  • 65
24
votes
3 answers

Symfony2 Form Entity Update

Can anyone please show me a specific example of a Symfony2 form entity update? The book only shows how to create a new entity. I need an example of how to update an existing entity where I initially pass the id of the entity on the query string.…
Jeremy Hicks
  • 3,690
  • 5
  • 40
  • 52
24
votes
5 answers

Update entity framework objects

I transfer data between the entity framework and the business layer and user layer by using Data Transfer Objects. I do have some doubt, if I retrieve an object which is converted to a DTO, how do I update the correct object in the entity framework…
user75278
  • 241
  • 1
  • 2
  • 3
24
votes
3 answers

What is the effect of AsEnumerable() on a LINQ Entity?

Reading the questions here and here has given me some insight into the situation, and it seems like using the AsEnumerable is memory consuming. Is there a better way to do this LINQ and the way it is done now, is the data that comes out…
Andy
  • 2,248
  • 7
  • 34
  • 57
24
votes
2 answers

Using a stored procedure in entity framework, how do I get the entity to have its navigation properties populated?

Entity framework is cripplingly slow so I tried using a stored procedure but I ran into this problem. Entity Framework allows you to define a stored procedure that produces an entity. However my entity has 'navigation properties' which are not being…
user48545
  • 3,291
  • 9
  • 31
  • 42
23
votes
5 answers

JPA - multiple jars defining @Entity objects

We are developing a web application with Spring, Hibernate and Maven in a very modular fashion. There are core projects defining data access and view specific stuff, then there are modules defining logic and entities (@Entity) and then there's the…
Pete
  • 10,720
  • 25
  • 94
  • 139
23
votes
5 answers

Entity Framework always includes data that is in context even if I don't ask for it

I am using MVC.NET web api, EF with DB first, and I have lazy loading turned off on my context. EF is returning way too much data, even with LazyLoading turned off. For example, I have Users with one Role. When I query for Users and Include Role,…
Chris Putnam
  • 884
  • 1
  • 10
  • 16
22
votes
4 answers

find out the differences between two java beans for version tracking

say i have a java bean/an entity with 100 fields (inherited or not it is not relevant in this case). After update operations - in a transaction, i want to determine which fields are modified to track updates like a CVS. What is the easiest way to do…
Erhan Bagdemir
  • 5,231
  • 6
  • 34
  • 40
22
votes
1 answer

Odata - nested $select and $expand

http://services.odata.org/V4/Northwind/Northwind.svc/ I'm trying to get all Customers, their Orders and corresponding Order_Details at once and using nested $expand for that. To query the data I'm using following link:…
VladL
  • 12,769
  • 10
  • 63
  • 83
22
votes
7 answers

symfony : can't we have a hidden entity field?

I am rendering a form with an entity field in symfony. It works well when i choose a regular entity field. $builder ->add('parent','entity',array( 'class' => 'AppBundle:FoodAnalytics\Recipe', 'attr' => array( …
Sébastien
  • 5,263
  • 11
  • 55
  • 116
22
votes
3 answers

Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported

Am coding on visual studio 2012 and using Entity Model as my Data layer. However, my drop down control with the Linq statement tend to throw an unhandled exception when the page tries to load (stated title above). Here is my code below; using…
Oluwafemi
  • 14,243
  • 11
  • 43
  • 59
21
votes
5 answers

OneToMany relationship is not working

My Tables: Product: id, name Offer: id, value, product_id Entities: @Entity @Table(name="product") public class Product implements Serializable { @OneToMany(mappedBy="product") private Set offers; …
Emanuel
  • 6,622
  • 20
  • 58
  • 78
21
votes
4 answers

DDD: What kinds of behavior should I put on a domain entity?

My team tries very hard to stick to Domain Driven Design as an architectural strategy. But, most of the time, our domain entities are pretty anemic. We'd like to be putting more business/domain behavior on our domain entities. For example, Active…
Byron Sommardahl
  • 12,743
  • 15
  • 74
  • 131
21
votes
5 answers

what is a good pattern for converting between hibernate entities and data transfer objects?

I have had similar questions and concerns as to how to convert between Hibernate entities and data transfer objects to be returned by a web service as are discussed in this question: Is using data transfer objects in ejb3 considered best…
D Parsin
  • 731
  • 2
  • 7
  • 17
21
votes
4 answers

Choosing between java.util.Date or java.sql.Date

Should I use java.util.Date or java.sql.Date? I have a VisualFox database and I have retrieved the entities with the IntelliJ Idea wizard using an appropiate jdbc type 4 driver. The ide (or the driver) has created the date fields as Timestamp.…
Carlos Goce
  • 1,625
  • 4
  • 22
  • 33