About persistence unit

41-50 of 200Refresh
Manual
24

Entity Management Settings

" /> <persist serialization="false" /> persist always="auto" on-persist="false" on-commit="true" /> persistable types on the fly
Result
23

Posting to ObjectDB Website - Important Instructions

(preferred over JUnit). Use embedded mode to connect to the ObjectDB database directly (no persistence unit ... contain a persistence unit, An entity or IdClass class should implement the java.io.Serializable interface). ... ; import java.util.*; import javax.persistence.*; public final class MyTestCase {     public
Manual
22

Setting and Tuning of JPA Queries

to local): For the entire persistence unit - using a persistence.xml property:     persistence.query.timeout" - sets maximum ... . "javax.persistence.lock.timeout" - sets maximum waiting time for pessimistic locks, when pessimistic
Manual
22

Working with JPA Entity Objects

Entity objects are in-memory instances of entity classes (persistable user defined classes ... the database. An entity object becomes Managed when it is persisted to the database via an EntityManager’s persist method, which must be invoked within an active transaction. On transaction commit
Manual
21

Locking in JPA

can be set in several scopes: For the entire persistence unit - using a persistence.xml property:             persistence.lock.timeout" hint
Manual
19

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
Tutorial
18

Step 2: Define a JPA Entity Class

that a persistence unit definition in an XML file is missing. This is discussed in the ObjectDB Manual ... code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public
JPA Doc
17

JPA Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of the Java Persistence API (JPA) 2.0. The content is derived from the original JPA documentation (in the EclipseLink JPA 2 RI) with some additions and notes. The four most basic JPA types are: All the other JPA types are organized
FAQ
17

Which API should I use - JPA or JDO?

You can use ObjectDB with either the Java Persistence API (JPA) or the Java Data Objects (JDO) API. Both share similar architecture, design and abilities. When to prefer JPA JPA is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as the primary
JDO Doc
17

javax.jdo.JDOHelper

PersistenceManagerFactory or persistence unit. Returns a named PersistenceManagerFactory or persistence unit. Parameters ... PersistenceManagerFactory or persistence unit. Returns a named PersistenceManagerFactory or persistence ...  loader) Returns a named PersistenceManagerFactory or persistence unit. Returns a named