ObjectDB Database Search

1-50 of 200 results

JPA Container Injection Annotations

Jakarta Persistence (JPA) provides standard annotations to manage dependencies on container ... the container to inject EntityManager or EntityManagerFactory proxies directly into application components ... using the following annotations: Expresses a dependency on a container -managed EntityManager , injecting

jakarta.persistence.EntityManager.contains(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean contains (    Object entity ) Determine if the given object is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating

SELECT clause (JPQL / Criteria API)

with the containing entities. Therefore, embedded objects that are retrieved directly by a result path expression ... results: SELECT c.name, c.capital.name FROM Country AS c The result list of this query contains Object[] elements, one for each result row. Each array contains two elements: the first is the country name

Storing JPA Entities

of other persistable types can be stored in the database only as embedded objects in containing ... is thrown if the database already contains another entity of the same type with the same primary key ... their containing entities. Therefore, if Address is an embeddable class , the Employee entity is automatically

Collections in JPQL and Criteria Queries

. For example: 'English' MEMBER OF c.languages evaluates to TRUE if the languages collection contains ... if the languages collection does not contain 'English' , and FALSE otherwise. [NOT] IN The [NOT] IN operator provides an additional method for checking if a specified element is contained in a collection. JPA

Index Definition

files. When an entity is stored in the database, every indexed field must contain either null or a value ... to an entity Arrays and collections that contain values of the above types, including null You can define ... embeddable classes, because the fields of an embedded object are stored as part of the containing entity

JPA Entity Fields

; // not persistent because of @Transient } The preceding entity class contains only transient (non ... superclasses. When an entity is stored in the database, each persistent field must contain either null or ... class Person { @Embedded Address address; } Inverse fields Inverse (or mappedBy ) fields contain

JPA Persistable Types

. It can contain constructors, methods, fields, and nested types with any access modifier ( public , protected ... can be stored in the database only as embedded objects, that is, as part of a containing entity. A class ... , and date3 fields above might be initialized with new Date() , which contains both date and time. The time

Schema Update

configuration file contains an empty element. If this element is not empty, ObjectDB tries to apply ... is specified, a element serves as a container for child elements to rename classes and fields ... a container for child elements to rename fields in that class. The elements in the example rename the A , C

Privacy Policy

files that are placed on Your computer, mobile device or any other device by a website, containing ... may use Cookies. Web Beacons:  Certain sections of our Service and our emails may contain small ... Your Personal Data, We cannot guarantee its absolute security. Links to Other Websites Our Service may contain

jakarta.persistence.EntityManager

- { // do work in a persistence context ... }); In the Jakarta EE environment, a container -managed EntityManager may be obtained by dependency injection, using PersistenceContext . // inject the container ... : IllegalStateException - if the entity manager is container -managed. Since: Jakarta Persistence (JPA) 1.0 boolean

Database Transaction Replayer

by setting the path attribute in the configuration . The recording directory contains two types ... , which has the same transaction ID in its name, contains the database operations that were recorded

Retrieving JPA Entities

might contain a hollow Employee entity: Employee employee = em. find (Employee.class, 1); Employee managed ... the preceding example, the Employee entity class contains an address field that references an Address instance

Database Management Settings

The configuration element specifies back-end (database engine) settings for the server and for embedded mode. The default configuration file contains the following element: The element The element specifies the database file and page size settings: The initial attribute specifies the initial size

Apache License, Version 2.0, January 2004

copy of the attribution notices contained within such NOTICE file, excluding those notices

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default configuration file contains the following element: The element The element specifies how clients can connect

JPA Named Queries Annotations

. A container annotation that groups multiple @NamedQuery definitions on a single class. Supplies parameters

Database Replication and Clustering

;user=b;password=b" ); A composite URL contains two or more database URLs separated by a pipe character

JPA Attributes Annotations

property as an attribute containing a collection of embedded objects. This is used for "one-to-many

JPA Query Expressions (JPQL / Criteria)

functions, which this section describes. Organization of this section This section contains

JPA Metamodel Types

, Strings, or Dates) that do not contain persistent attributes of their own. An enumeration

JPA Query Structure (JPQL / Criteria)

the database. Organization of this Section This section contains the following pages: The following

What are the main benefits of using ObjectDB?

fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack

Where can I learn how to use ObjectDB?

The best source for learning ObjectDB is the ObjectDB Manual , which contains all the necessary information for using ObjectDB. The only required background is a good understanding of the Java language. Reading the manual and getting started with ObjectDB could be easier for developers with prior

Database Schema Evolution

to any collection or array that can contain that object as an element. From any map type to any

Chapter 2 - JPA Entity Classes

An entity class is a user-defined class whose instances can be stored in a database. To store data in an ObjectDB database using Jakarta Persistence (JPA), you define entity classes that represent your application's data object model. This chapter contains the following sections:

Eclipse Public License - v 1.0

copyright notices contained within the Program. Each Contributor must identify itself as the originator

[ODB1] Chapter 6 - Persistent Objects

part of a containing object. Objects stored explicitly by makePersistent( ... ) are never embedded ... (an embedded object can only be retrieved using a reference from its containing object). 6.2  ... ); String s1 = oid.toString(); // s1 contains a temporary negative number pm.currentTransaction

[ODB1] Chapter 2 - A Quick Tour

, step by step. Both sample programs are contained in ObjectDB's samples directory. 2.1   ... of the second run is expected to be: Hello World 0 Hello World 1 After two runs, the database contains ... of a single source file, HelloWorld.java , containing a single class: 1 // A simple program that manages

[ODB1] Chapter 9 - ObjectDB Explorer

directory. Before using explorer.sh, you have to edit the paths that it contains . The following ... that the database contains (root objects are discussed in chapter 6 ). The "Query" window enables a user ... the "Tools | Options" menu command. The "General" Page The "General" page contains various options

JPA Tutorials

, so you should be able to run it on any servlet container (e.g. Apache Tomcat, Jetty, etc.), as well as ... application that should be deployed in a Java EE 6 container : Java EE 6 (J2EE) Web Tutorial

Step 3: Define an EJB Session Bean

application servers such as GlassFish and JBoss, and not by servlet containers , such as Tomcat and Jetty. By using EJB classes we can move some work from the application to the EJB container (i.e

[ODB1] Chapter 8 - ObjectDB Server

application, packaged in the odbse.jar file. The jar file contains the entire ObjectDB ... directory containing all the database files that the server is allowed to access and manage. Please note ... the element in a multi user configuration, every user can be assigned a private subdirectory containing

Step 5: Add a JSP Page

, which contains a simple form for signing the guestbook, followed by a list of all the guests

JPA Web App Tutorial - Maven Project

: mvn package jetty:run The current directory should be  guestbook-web ( containing the  pom

Report Generation with BIRT and JPA

Started tutorial. The database file contains 1,000 Point entities, which represent points on the line y

Step 1: Create a Maven Web Project

of the new created project is contained in a  pom.xml file that was created in the project main

Step 1: Create a Maven Web Project

the project. The configuration of the new created project is contained in a pom.xml file that was created

Getting Started with JPA and Eclipse

distribution zip file. The distribution zip contains everything necessary (no external dependencies

Java EE Web Tutorial

. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container : Manages

Step 5: Add a JSP Page

Guest Book Web Application Tutorial Name: The JSP generates the guestbook page output, which contains

Getting Started with JPA - Maven Project

The current directory should be points-console ( containing the pom.xml file). No need to download

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container : Manages

Spring MVC JPA Tutorial - Maven Project

jetty:run The current directory should be  guestbook-spring ( containing the  pom.xml file

Step 5: Add a JSP Page

Guest Book Web Application Tutorial Name: The JSP generates the guestbook page output, which contains

Step 5: Add a JSP Page

Tutorial Name: The JSP generates the guestbook page output, which contains a simple form for signing

Step 5: Add a JSP Page

Tutorial Name: The JSP generates the guestbook page output, which contains a simple form for signing

[ODB1] Chapter 3 - Persistent Classes

, List and Map ) cannot refer to an unsupported collection, or a collection that contains objects ... the term 'persistence aware' refers to classes that are not persistent but contain code that accesses or

ObjectDB 1.0 Manual

basic database programming using ObjectDB. Subsequent chapters contain detailed instructions