Home » Search

About Persistence Context

31-40 of 200Refresh
Forum
18

Puzzler: Not getting cascades on read from Spring context

. My best guess is that perhaps I have something misconfigured in my persistence.xml or my context.    -dh
JDO Doc
16

javax.jdo.JDOHelper

whether the instance is persistent, transactional, dirty, new, deleted, or detached ... with the parameter instance. Persistent instances of PersistenceCapable classes have a JDO identity ... from the same JDO implementation to locate a persistent instance with the same data store identity
Manual
16

Detached Entity Objects

The following operations clear the entire EntityManager's persistence context and detach all managed ... method, which clears an EntityManager's persistence context. Rolling back a transaction - either by ... ). Retrieval by navigation from detached objects is not supported, so only persistent fields
Manual
15

Database Connection using JPA

Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview ... a static factory method of the JPA bootstrap class, Persistence: EntityManagerFactory emf = Persistence.createEntityManagerFactory("myDbFile.odb"); Another form
Tutorial
14

Step 2: Define a JPA Entity Class

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 ... ; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private
Tutorial
13

Step 2: Define a JPA Entity Class

.Serializable; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id
Manual
13

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
Manual
13

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema ... and non persistent fields. However, additions, deletions and modifications to the persistent fields ... to any numeric type. In this context numeric types are: byte, short, char, int, long, float, double
JPA Doc
12

javax.persistence.Persistence

javax.persistence Class Persistence java.lang.Object javax.persistence.Persistence Bootstrap class that is used to obtain an EntityManagerFactory in Java SE environments. The Persistence ... bootstrapping APIs is not required in container environments. The Persistence class is used to obtain
JPA Doc
11

Persistence()

Constructor javax.persistence.Persistence Persistence() Since: JPA 1.0