About EntityTransaction
Database Connection using JPA
Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... EntityManager EntityTransaction Overview A connection to a ... active transactions. Transactions are managed by an EntityTransaction javax.persistence.EntityTransaction JPA interface Interface used to control ...
Storing JPA Entity Objects
Explains how to use JPA to store (persist) entity objects in the database.... EntityManager's method Return the resource-level EntityTransaction object. See JavaDoc Reference Page... ( ) . begin begin() EntityTransaction's method Start a resource transaction. See JavaDoc ...
CRUD Operations with JPA
Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove). The following subsections explain how to use JPA for CRUD database operations: Storing JPA Entity Objects Retrieving JPA Entity Objects Updating JPA Entity Objects Deleting JPA Entity Objects ...
Updating JPA Entity Objects
Explains how to use JPA to delete (remove) entity objects from the database.... EntityManager's method Return the resource-level EntityTransaction object. See JavaDoc Reference Page... ( ) . begin begin() EntityTransaction's method Start a resource transaction. See JavaDoc ...
Deleting JPA Entity Objects
Explains how to use JPA to delete (remove) entity objects from the database.... EntityManager's method Return the resource-level EntityTransaction object. See JavaDoc Reference Page... ( ) . begin begin() EntityTransaction's method Start a resource transaction. See JavaDoc ...
Chapter 3 - Using JPA
Explains how to store, retrieve, update and delete entity objects using JPA. This chapter explains how to manage ObjectDB databases using the Java Persistence API (JPA). The first two pages introduce basic JPA interfaces and concepts: Database Connection using JPA Working with JPA Entity Objects ...
JPA Reference (JavaDoc)
Java/JPA API Reference (based on the JPA 3 JavaDoc)... javax.persistence.EntityManager javax.persistence.EntityTransaction All the other JPA types are organized into the ...
getTransaction()
Return the resource-level EntityTransaction object.(Method of javax.persistence.EntityManager)
commit()
Commit the current resource transaction, writing any unflushed changes to the database.(Method of javax.persistence.EntityTransaction)