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.Cache.contains(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache boolean contains (    Class cls ,    Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache. Since: Jakarta Persistence (JPA) 1.0

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

JPA ORM Mapping Annotations

. A container annotation for defining multiple @SecondaryTable entries. Specifies a unique constraint ... : Specifies a column for joining an entity association or element collection. A container annotation ... a foreign key to join to another table (often used in JOINED inheritance). A container annotation

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

Server User List

contains the following element: The elements ... ... Each user is represented by a single element ... to connect to the database. The element Each element can contain one or more subelements that specify ... can contain the following permissions: access : Permission to open a database for reading. modify

SSL Configuration

communication. The default configuration file contains the following element: The enabled attribute ... , you must generate at least two files: A keystore file that contains the server's unique signature. This file ... . The SSL protocol uses the RSA algorithm for key exchange. A truststore file that contains

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

JPA Persistence Unit

classes in the JAR file that contains the persistence.xml file, are registered automatically ... an extension) automatically registers classes in the classpath root directory that contains the META ... queries are available only after their containing classes become known to ObjectDB--for example, when the first instance of a class is stored in the database.

Managing JPA Entities

to the database when the transaction is committed. The Updating Entities section contains more information ... to use strong or soft references instead of weak references . Use the contains method to check if a specified entity is in the persistence context: boolean isManaged = em. contains (employee); To clear

ObjectDB Website - Terms and Conditions of Use

from using or accessing this site. The materials contained in this web site are protected by ... engineer any software contained on ObjectDB Software's web site; remove any copyright or other proprietary ... changes to the materials contained on its web site at any time without notice. ObjectDB Software does

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

Chapter 6 - Configuration

The ObjectDB configuration file contains one root element with seven child elements: ... ... ... ... ... ... ... Each of these seven configuration elements is explained in a separate section ... to the directory that contains objectdb.jar , with one exception: if that directory is named bin

JPA Fetch Graphs Annotations

. It is defined on an entity class and contains a list of attribute nodes that constitute the fetch plan. A container annotation used to group multiple @NamedEntityGraph definitions on a single entity

GROUP BY and HAVING clauses

HAVING to ignore groups that contain only a single country: SELECT c.currency, SUM(c.population) FROM ... . Therefore, the SELECT clause can only contain aggregate functions, and individual objects and their fields

ORDER BY clause (JPQL / Criteria API)

evaluating the order expressions. The ORDER BY clause can only contain expressions that are derived ... . If a query contains both a GROUP BY clause and an ORDER BY clause, the GROUP BY clause first aggregates

General Settings and Logging

The configuration element specifies ObjectDB settings that are relevant to both the server and the client. The default configuration file contains the following element: The element To meet memory ... results that contain millions of objects. The element specifies temporary file settings: The path

Chapter 1 - Quick Tour

. The example program in this chapter manages a simple database that contains points in the plane. Each point ... Point objects. This chapter contains the following sections: To run the sample program from

Database Explorer

a persistent field, and each cell contains the value of a field for a specific object. This type ... has three tabs: General , Fonts , and Views . The General tab The General tab contains the following settings

JPA Primary Key

part of their containing entities and do not have a separate identity. Automatic primary key By default ... an embeddable class . The entity contains a single primary key field that is annotated

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

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

Step 3: Define an EJB Session Bean

Java EE 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

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