ObjectDB Database Search
1-50 of 200 resultsJPA Persistence Unit A JPA persistence unit is a logical grouping of user-defined persistable classes (entity classes ... is optional when using ObjectDB but required by JPA . Programmatic configuration (PersistenceConfiguration) Starting with JPA 3.2 , it is no longer mandatory to use a persistence.xml   | |
ObjectDB - JPA Object Database for Java it is the bottleneck in most applications. ObjectDB is extremely fast and much faster than any other JPA ... when the object data model is complex. See JPA benchmark results... Reduce development time. Improve ... using the Java Persistence API ( JPA ). It is the first persistence solution that combined a powerful | |
JPA Query API Jakarta Persistence ( JPA ) represents queries with two interfaces: the Query interface, which was the only query interface in JPA 1, and the TypedQuery interface, which was introduced in JPA 2 ... with createQuery As with most JPA operations, queries start with an EntityManager (represented as | |
JPA Criteria API Queries The JPA Criteria API provides an alternative way to define JPA queries. It is useful for building dynamic queries whose structure is known only at runtime. JPA Criteria API vs. JPQL JPQL queries are defined as strings, similar to SQL. In contrast, JPA Criteria queries are defined by instantiating | |
JPA Entity Fields either the Java transient modifier (which also affects serialization) or the JPA @Transient ... of entity types. @Basic : For any other persistable type. In JPA , only @Basic is optional ... of these annotations. They are useful only for classes that are also used with an ORM JPA provider | |
What is the Java Persistence API (JPA)? The Java Persistence API ( JPA ) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases) is that in JPA data is represented by classes and objects rather than by tables and records as in | |
JPA Persistable Types supports all JPA persistable types, which include: User-defined classes: Entity classes, mapped ... .Entity; @Entity public class MyEntity { } Entity class requirements A portable JPA entity class ... . Mapped superclasses In JPA , classes that are declared as mapped superclasses have some of the features | |
Retrieving JPA Entities Jakarta Persistence ( JPA ) provides various ways to retrieve objects from the database. Retrieving ... the persistence context, JPA constructs a new object and populates it with data from the database or the Level 2 (L2) cache, if enabled. JPA then adds the new entity to the persistence context as a managed | |
Defining a JPA Entity Class To store Point objects in a database using JPA , you must define an entity class . A JPA entity ... class is an ordinary Java class. The only JPA -specific addition is the @Entity annotation ... class as an entity, JPA throws a PersistenceException . This behavior is similar | |
Setting and Tuning of JPA Queries. However, these changes are not visible to users of other EntityManager instances. JPA implementations ... must be flushed to the database to be visible to the query. The flush policy in JPA is represented by ... and on commit or flush . COMMIT - Flushes changes only on an explicit commit or flush . In most JPA | |
JPA Extended API Reference Guide Jakarta Persistence API ( JPA ) 3.2 documentation, generated from the official JavaDoc and enriched ... . The JPA types are organized in this reference into the following sections : Defines ... configuration options for common JPA operations. Details the annotations used to define the persistent object | |
JPA Class Enhancer directly accessing persistent fields of other classes. This practice is required by the JPA specification ... with JPA JPA Web Application Java EE JPA Spring MVC and JPA Similarly, enhancement can be integrated | |
JPA Named Queries class Country { ... } Note: You can also define named queries in JPA XML mapping files instead of using the @NamedQuery annotation. ObjectDB supports JPA XML mapping files, including the definition ... ) JPA providers and less so for ObjectDB, this manual does not cover that alternative. Using Named | |
Query Parameters in JPA their format: a colon (:) followed by a valid JPQL identifier that serves as the parameter name. JPA ... over ordinal parameters. Criteria Query Parameters In a JPA query built using the JPA Criteria API ... number of methods is not typical for JPA , which is generally known for its lean and simple API | |
JPA Connections and Transactions Working with the Java Persistence API ( JPA ) consists of using the following interfaces: Overview ... , which are used to execute database queries. Every JPA implementation provides classes that implement ... . Because your application uses the standard JPA interfaces, it remains portable across different JPA providers | |
JPA Core Types Core Jakarta Persistence ( JPA ) types provide the foundation for bootstrapping the persistence ... illustrates the core JPA classes, interfaces, and enums, including their dependencies and inheritance relationships. Jakarta Persistence ( JPA ) 3.2 Core Types Bootstrapping and Configuration | |
Updating JPA Entities rather than arrays when you use JPA . Collections are more portable across ORM JPA implementations ... when you must modify many entities in a single operation. The UPDATE Queries in JPA /JPQL section in Chapter 4 explains how to use JPA UPDATE queries. | |
JPA Optimistic and Pessimistic Locking Jakarta Persistence ( JPA ) supports both optimistic locking and pessimistic locking . Locking ... of whether a version field (which is required by some ORM JPA providers) is defined in the entity ... (which are discussed above), JPA defines additional lock modes that you can specify as arguments | |
JPA Criteria Query Expressions Jakarta Persistence ( JPA ) Criteria API uses a hierarchy of interfaces to model query conditions ... .SimpleCase Queries may include many different types of expressions and JPA implementations may implement tens and hundreds of classes to manage these different expression types. JPA simplifies | |
JPA Lifecycle Events Callback methods are user-defined methods that are attached to entity lifecycle events. JPA ... and have a public, no-argument constructor to allow JPA to instantiate it. To attach a listener to an entity ... methods are defined for a single lifecycle event, JPA invokes them in the following order: External | |
JPA Queries with full type safety. General query objects Execute SELECT, UPDATE and DELETE queries in JPA using these core interfaces: The base interface for executing queries in JPA . It is often replaced by ... instructions, refer to the JPA Query API section in the ObjectDB manual. Criteria query API | |
Obtaining a JPA Database Connection In JPA , a database connection is represented by the EntityManager interface ... that represents the database. Then, you use that factory to get an EntityManager instance. JPA requires ... . When using JPA , every operation on a database is associated with an EntityManager . Furthermore, in | |
Chapter 3 - Using JPA This chapter explains how to manage ObjectDB databases by using Jakarta Persistence ( JPA ). The first two pages introduce basic JPA interfaces and concepts: The next section explains how to use JPA for database CRUD (create, read, update, and delete) operations: The final section discusses advanced topics, such as locking and events: | |
JPA Exceptions Jakarta Persistence ( JPA ) defines a hierarchy of unchecked exceptions rooted in PersistenceException to handle runtime failures. This structure enables applications to catch specific errors or ... runtime exception for the JPA API. All other JPA exceptions inherit from this class, enabling | |
Chapter 4 - JPA Queries (JPQL / Criteria) and the Jakarta Persistence ( JPA ) Criteria Query API, which provides an alternative way to build queries in JPA . The first section describes the JPA API for running dynamic and static (named) queries | |
JPA Primary Key also supports standard JPA primary keys, including explicit keys, composite primary keys ... departmentId; @Id long projectId; : } When an entity has multiple primary key fields, JPA requires ... the primary key JPA provides a generic method for getting the object ID (primary key) of a managed | |
Storing JPA Entities Using Jakarta Persistence ( JPA ) You can store new entities in the database either explicitly by calling the persist method or implicitly through a cascade operation. Explicit persist The following ... . You can do this either by setting the ObjectDB configuration or, in a JPA -portable way, by specifying the cascade-persist | |
JPA Named Queries Annotations Jakarta Persistence ( JPA ) provides annotations to define static, reusable queries at the class level, separating query logic from business code. Query definitions Declare named queries using ... , cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section | |
JPA Metamodel Attributes The Jakarta Persistence ( JPA ) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the attributes of managed persistent types (entities, embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence ( JPA ) 3. Base attribute definitions | |
JPA Metamodel Types The Jakarta Persistence ( JPA ) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence ( JPA ) 3.2 Base type definitions The core abstractions of model types | |
JPA Criteria Queries The Jakarta Persistence ( JPA ) Criteria API provides a type-safe, programmatic alternative to string-based JPQL for constructing dynamic queries, ensuring compile-time safety and facilitating ... queries: Criteria Queries Hierarchy in Jakarta Persistence ( JPA ) 3.2 Instances of  | |
JPA Tutorials The following tutorials demonstrate how to develop database driven applications using JPA and the ObjectDB ODBMS (Object Oriented Database Management System). Console JPA Tutorial The Quick Start tutorial demonstrates how to use ObjectDB and JPA in a console application: Quick Start with JPA | |
Getting Started with JPA This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields - x and y . If you already know JPA - the source code will be straightforward | |
Eclipse/JPA Spring MVC Web Tutorial This is the Eclipse version of the Spring MVC and JPA tutorial. It demonstrates  ... Eclipse - using ObjectDB, JPA , Tomcat (or GlassFish) and Maven. The demo web application manages ... that have already signed are listed below the form: Persistence is managed by JPA . Every visitor | |
NetBeans/JPA Spring MVC Web Tutorial This is the NetBeans version of the Spring MVC and JPA tutorial. It demonstrates  ... NetBeans - using JPA , ObjectDB, Tomcat (or GlassFish) and Maven. The demo web application ... . The visitors that have already signed are listed below the form: Persistence is managed by JPA | |
JPA Web App Tutorial - Maven Project The JPA Web Application tutorial provides step by step instructions on how to build a simple Java/ JPA database driven web application (for Tomcat / Jetty) in Eclipse or NetBeans ... , you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB | |
Spring MVC and JPA Tutorial) web application using Tomcat (or GlassFish), JPA , ObjectDB and Maven. The demo web application manages ... that have already signed are listed below the form: Persistence is managed by JPA . Every visitor that has signed the guestbook is represented as Guest JPA entity, and all Guest entities are stored in | |
Getting Started with JPA and Eclipse This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields: x and y | |
NetBeans/JPA Web Application Tutorial This is the NetBeans version of the JPA Web App tutorial. It demonstrates how  ... Server 6.0 ( some modifications are needed for Tomcat 7.0 ), ObjectDB and JPA . The demo web ... form. The visitors that have already signed are listed below the form: Persistence is managed by JPA | |
Eclipse/JPA Java EE Tutorial This is the Eclipse version of the Java EE JPA tutorial. It demonstrates how  ... GlassFish, 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 | |
Eclipse/JPA Web Application Tutorial This is the Eclipse version of the JPA Web App tutorial. It demonstrates how to create and run a database driven Java web application in Eclipse - using Tomcat 6, ObjectDB and JPA ... is managed by JPA . Every visitor that has signed the guestbook is represented by a Guest entity | |
Getting Started with JPA - Maven Project The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step ... application as a Maven project: Getting Started with JPA - Maven Project (3KB | |
Spring MVC JPA Tutorial - Maven Project The Spring MVC JPA tutorial provides step by step instructions on how to build a simple Java/ JPA Spring MVC database driven web application in Eclipse or NetBeans . Building a new ... , you may download and run the finished application as a Maven project: Spring MVC JPA - Maven Project (8KB) If  | |
NetBeans/JPA Java EE Tutorial This is the NetBeans version of the Java EE JPA tutorial. It demonstrates  ... NetBeans - using GlassFish, ObjectDB and JPA . The demo web application manages a basic guestbook page ... that have already signed are listed below the form: Persistence is managed by JPA . Every visitor that has signed | |
Getting Started with JPA and NetBeans This is the NetBeans version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in NetBeans. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields -  | |
Spring MVC JPA Tutorial - IntelliJ Project To open and run the Spring MVC JPA tutorial project in Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the project in IntelliJ IDEA: Select File Open Project... . Select the guestbook-spring directory and click OK . Define | |
JPA Web App Tutorial - NetBeans Project To open and run the JPA Web Application tutorial project in NetBeans: Download and extract the project zip file: JPA Web App - Maven Project (6KB) Open the Maven project in NetBeans: Select File Open Project... . Select the guestbook-web directory and click Open | |
Java EE JPA Tutorial - Maven Project The Java EE 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  ... ;if you prefer, you may download and run the result application as a Maven project: Java EE JPA Web | |
Spring MVC JPA Tutorial - Eclipse Project To open and run the Spring MVC JPA tutorial project in Eclipse: Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the guestbook | |
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 |