About JPA

81-90 of 200Refresh
JPA Doc
64

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.
JPA Doc
64

JPA Annotations for Java EE

The following JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container:
JPA Doc
64

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB: ObjectDB silently ignores all the above annotations.
JPA Doc
64

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:
Tutorial
64

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... . The next step is adding a context listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database.
JPA Doc
64

JPA Annotations for JPQL Queries

The following annotations are used to define static named JPA queries: The JPA Named Queries section of the ObjectDB Manual explains and demonstrates how to use these annotations to define named JPQL queries.
Manual
64

JPA Metamodel API

The JPA Metamodel API provides the ability to examine the persistent object model and retrieve details on managed classes and persistent fields and properties, similarly to the ability that Java reflection provides for general Java types. The Metamodel Interface The main interface of the JPA
Tutorial
64

Java EE 6 JPA Tutorial - Maven Project [2011-02-05]

The Java EE 6 Web Application tutorial provides step by step instructions on how to build a simple Java/JPA database driven web application (for GlassFish 3/ JBoss 6) in Eclipse or NetBeans. Building ... and run the result application as a Maven project: Java EE 6 JPA Web App - Maven Project (6KB
Manual
64

Chapter 2 - JPA Entity Classes [2013-02-25]

JPA Entity classes are user defined classes whose instances can be stored in a database. To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes. 
Tutorial
64

JPA Web Application Tutorial [2011-09-20]

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA. The demo web application manages a basic guestbook page. Every visitor ... below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by