Home » Search

About Persistence Context

11-20 of 200 Refresh

JPA Persistable Types

The term persistable types refers to data types that can be used in storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes ... can be stored in the database directly. Other persistable types can be embedded in entity classes as fields. In

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java ... . Using plain old Java objects (POJO) to represent persistent data can significantly simplify database ... Persistence API (JPA). By interacting with ObjectDB using standard JPA you can keep your application


javax. persistence Interface EntityManager Interface used to interact with the persistence context. An EntityManager instance is associated with a persistence context. A persistence context is a set ... . Within the persistence context, the entity instances and their lifecycle are managed

CRUD Database Operations with JPA

= 0; i < 1000; i++) { Point p = new Point(i, i); em. persist(p); } em ... a managed entity) by the persist method. The new Point objects are physically stored in the database ... persisting objects in the database in more detail. JPA Queries with JPQL We can get the number of Point

Shared (L2) Entity Cache

Every EntityManager owns a persistence context, which is a collection of all the entity objects that it manages. The persistence context serves as a first level cache. An attempt to retrieve ... the persistence context, rather than a new instantiated entity object. The scope of the persistence context

getPersistenceManagerFactory(jndiLocation, context)

 jndiLocation,    Context  context ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new InitialContext() will be used. This method is equivalent to invoking getPersistenceManagerFactory(String, Context,ClassLoader

getPersistenceManagerFactory(jndiLocation, context, loader)

 jndiLocation,    Context  context,   ClassLoader loader ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new ... the PersistenceManagerFactory context - the context in which to find the named PersistenceManagerFactory

Retrieving JPA Entity Objects

of the database. The persistence context serves as a cache of retrieved entity objects. If a requested entity object is not found in the persistence context a new object is constructed and filled ... is then added to the persistence context as a managed entity object and returned to the application

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

with extended Persistence Context? [EDIT: 2006-09-29 New improved version of test mini web app with test mode ... () and has an entity manager with an extended persistence context. The basic idea (which used to work fine in practice ... persistence context entity manager is: @Stateful public class ExtProjectBuilder extends

How to Use a SF with extended Persistence Context?

Hey, I have a problem to use SF with an Extended Persistence Context Regarding to Transactions. The need for an extended persistence Context emerges for the need to create queries in advance for fast ... with an extended persistence context. the GuestServlet holds reference to a SL called GuestUpdater