Top "Entity" questions

In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed.

How to fix the Hibernate "object references an unsaved transient instance - save the transient instance before flushing" error

I receive following error when I save the object using Hibernate object references an unsaved transient instance - save the …

java hibernate jpa orm entity
PersistentObjectException: detached entity passed to persist thrown by JPA and Hibernate

I have a JPA-persisted object model that contains a many-to-one relationship: an Account has many Transactions. A Transaction has one …

java hibernate jpa entity persist
How to update only one field using Entity Framework?

Here's the table Users UserId UserName Password EmailAddress and the code.. public void ChangePassword(int userId, string password){ //code to …

sql entity-framework-4 entity field dbcontext
org.hibernate.MappingException: Unknown entity: annotations.Users

Consider the hierarchy : And the following classes and xml : HibernateUtil.java package annotations; import org.hibernate.SessionFactory; import org.hibernate.…

java hibernate exception entity
What is the difference between persist() and merge() in JPA and Hibernate?

What is the difference between persist() and merge() in Hibernate? persist() can create a UPDATE & INSERT query, eg: SessionFactory …

java hibernate jpa orm entity
Improving bulk insert performance in Entity framework

I want to insert 20000 records in a table by entity framework and it takes about 2 min. Is there any way …

entity-framework entity
How to delete an object by id with entity framework

It seems to me that I have to retrieve an object before I delete it with entity framework like below …

entity-framework entity
EF 4.1 exception "The provider did not return a ProviderManifestToken string"

I am trying to replicate an example found on MSDN. I am using ASP.NET and EF 4.1 (CTP?). I've used …

asp.net sql entity
Generate JPA 2 Entities from existing Database

How can I generate JPA2 compliant @Entity from existing Databases?. I found this: Question Still its not clear if JBoss …

java code-generation persistence entity jpa-2.0