ObjectDB Database Search

51-100 of 200 results

JPQL query to get entities that does not have a child entity in their child entities

having status '%Started' and not '%Failed' and not '%Canceled' and not 'Finished'. I have entities for Job and Status with NamedQueries on Job entity and using TomEE for deployment. I am using following

JPA Metamodel API

. Three methods can be used to retrieve sets of types: // Get all the managed classes: // ( entity classes ... (); // Get all the entity classes: Set allEntityTypes = metamodel. getEntities (); // Get all the embeddable ... methods can be used to retrieve a specific type by its Class instance: // Get a managed type ( entity

JPA Fetch Graphs Annotations

Named entity graphs provide a static mechanism for defining fetch plans using annotations on entity classes. These graphs optimize database performance by specifying which attributes ... named entity graphs at the class level using the following annotations: Specifies a named entity graph

JPA Relationships Annotations

Relationships define associations between entities . They are represented In Java code by ... of references to other entities . Jakarta Persistence (JPA) provides annotations to configure ... of entity associations: Defines a single-valued association with one-to-one multiplicity between

JPA Annotations

engine manages objects and their database mappings. These annotations configure entity behavior ... classes as entities , embeddables, or mapped superclasses while configuring caching and listener behavior. Declare static, reusable JPQL queries directly on the entity class. Optimize data retrieval by

JPA Metamodel Types

defining the high-level classification of a type: BASIC , ENTITY , EMBEDDABLE , or MAPPED_SUPERCLASS ... state through attributes form the core of the metamodel: The common superinterface for entities ... with a persistent identity (primary key), serving as the superinterface of entities and mapped

ObjectDB Object Database Features

). Up to 2,147,483,648 entity classes per database file. Up to 2,147,483,648 indices per database file. Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections ... . Configurable - minimum/maximum connections and timeout. Caching L1 entity object cache

jakarta.persistence.PersistenceUnitUtil

the persistence unit. The methods of this interface should only be invoked on entity instances obtained from or managed by entity managers for this persistence unit or on new entity instances. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class getClass ( T entity ) Return the concrete entity

FROM clause (JPQL / Criteria API)

are query identification variables that iterate over all the database objects of a specific entity class hierarchy (i.e. an entity class and all its descendant entity classes). Identification variables ... of an entity class in a JPQL query is the unqualified name of the class (e.g. just Country with no package

JPA Attributes Annotations

Jakarta Persistence (JPA) annotations define how entity attributes (fields and properties ... . The embedded state is stored in the same table as the owning entity . Specifies a collection field or ... " relationships where the target is not an entity . Specifies that the field or property is not persistent

JPA Query Structure (JPQL / Criteria)

classes and objects. For example, a JPQL query can retrieve and return entity objects ... elements such as names of entity classes and persistent fields, which are case sensitive. In addition ... over objects in the database. A query variable that is bound to an entity class is referred to as a range

JPA Class Enhancer

( entity classes , embeddable classes and mapped superclasses ), and is usually optional ... efficient tracking of persistent field modifications, avoiding the need for snapshot comparison of entities ... loading of entity objects. With no enhancement, only persistent collection and map fields

SQL Queries Annotations

the results of native SQL queries to entities or scalar values using these annotations: Defines how the result set of a native query maps to entities , scalar values, or constructor results. Groups ... to entity fields or scalar types with these detailed annotations: Maps a native query result to a specific

Eclipse Public License - v 1.0

entity that distributes the Program. "Licensed Patents" mean patent claims licensable by ... property rights of any other entity . Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As

Posting Sample Code

. Whenever possible: Use a single Java file with one main class + static inner classes for entity ... ();     }     @ Entity     public static class MyEntity ... warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or

JPA Exceptions

These exceptions relate to transaction state and entity lifecycle operations: Thrown when a transaction ... . This exception often wraps an underlying cause. Thrown when EntityManager.persist is called on an entity that already exists in the database. Thrown when an entity is expected to exist but cannot be found

jakarta.persistence.EntityGraph

of the root entity . Super Interfaces: Graph This type represents the root of an entity graph that will be used as a template to define the attribute nodes and boundaries of a graph of entities and entity relationships. The root must be an entity type. The methods to add subgraphs implicitly create

Database Management Settings

some ORM JPA providers) is defined in the entity class or not. It can be disabled by setting the  ... indexes are handled. When a new index is defined for an existing entity class that already has instances ... Removing ObjectDB evaluation restrictions (of 10 entity classes and 1,000,000 entity objects

JPA Fetch Plan Graphs

Jakarta Persistence (JPA) Entity Graphs optimize query performance by specifying  ... for defining fetch plans of related entities or embeddables. It enables fine-grained control over deep attribute loading within the object hierarchy. The common super-interface for both entity and subgraphs

JPA Metamodel and Graphs

object model at runtime. It allows developers to programmatically examine entities , embeddables ... to retrieve entity and attribute information by class or name, similar to the reflection API in Java ... , described in the following subsections: Describes the hierarchy of persistent types, including entities

JPA Criteria FROM and JOIN

clause of a query. These interfaces define query variables, including entity roots and various join types ... an entity type variable, whose scope is all instances of the entity type. Defines an attribute ... of these values (typically other referenced entity objects) to make working with the query results

jakarta.persistence.EntityManagerFactory

the application, and which must be colocated in their mapping to a single database. If two entity types ... of the Persistence class: if the persistence unit is defined in persistence.xml , an entity manager ... .createEntityManagerFactory , or if the persistence unit was defined using PersistenceConfiguration , an entity

jakarta.persistence.Subgraph

that corresponds to a managed type. Using this class, an entity subgraph can be embedded ... . IllegalArgumentException - if the attribute is not an attribute of this entity .. Since: Jakarta Persistence (JPA) 3.2 ... ... attributeName ) Add one or more attribute nodes to the entity graph

Setting and Tuning of JPA Queries

automatic optimistic locking to prevent concurrent changes to entity objects by multiple users. JPA 2 ... " . When LAZY is used result entity objects are returned as references (with no content). This could be useful when the shared L2 cache is enabled and entity objects may already be available in

JPA Extended API Reference Guide

the fundamental classes and interfaces for entity management and persistence operations. Covers the query API ... for representing the persistent object model. Use these interfaces to inspect entity structures ... model and entity behavior. Documents the exception hierarchy thrown by JPA to indicate errors

CRUD Database Operations with JPA

it to store, retrieve, update and delete database objects. Storing New Entity Objects The following ... (); for (int i = 0; i = 100) { em. remove (p); // delete entity } else { p.setX(p.getX() + 100); // update entity } } em. getTransaction (). commit (); In the above example all the Point objects whose x

jakarta.persistence.Graph

is not an attribute of this entity .. Since: Jakarta Persistence (JPA) 3.2 AttributeNode ... nodes to the entity graph. If there is already an existing node for one of the given attribute names ... to the entity graph. If there is already an existing node for one of the given attributes, that particular

Is ObjectDB scalable? What are its limitations?

supports: Database file size up to 128 TB (= 131,072 GB = 134,217,728 MB). Up to 2,147,483,648 entity ... . Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections (limited by operating system resources).

ObjectDB License

Free License ObjectDB can be downloaded and used at no cost (including commercially)  with the restriction of a maximum of  10 entity classes and one million entity objects per database file. This could be useful for small projects, academic assignments, evaluation and learning

JPA Runtime Tuning & Configuration

Most Jakarta Persistence configuration is static, defined through annotations (e.g., @ Entity , @Table ) or set globally at the persistence unit level during bootstrapping . This section describes ... Controls when the persistence context is synchronized with the database and when in-memory entity

Comparison in JPQL and Criteria API

defined classes ( entity classes and embeddable classes) can be compared by using the equality operators (=, , == , != ). For entities , e1 = e2 if e1 and e2 have the same type and the same primary key value

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes ( entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit ... registration of all the user defined persistable classes ( entity classes, embeddable classes and mapped

jakarta.persistence.MapKeyJoinColumn

Interfaces: Annotation Target: Method, Field Specifies a mapping to an entity that is a map key. The map key join column is in the collection table, join table, or table of the target entity that is used ... and the default values apply. Example 1: @ Entity public class Company { @Id int id; ... @OneToMany

jakarta.persistence.metamodel.Metamodel

to the metamodel of persistent entities in the persistence unit. Since: Jakarta Persistence (JPA) 2.0 ... . Since: Jakarta Persistence (JPA) 1.0 EntityType entity ( String entityName ) Return the metamodel entity type representing the entity . Parameters: entityName - the name of the represented entity Returns

Removing of an entity removes also another entity type

Hello, we have following case: All entities must be enhanced, because see Issue #303. ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. The transaction starts

Eclipse/JPA Spring MVC Web Tutorial

that has signed the guestbook is represented by a  Guest JPA entity object and all the  Guest entity objects are stored in an ObjectDB database. Required Software For this tutorial you will need

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity object, and all Guest entity objects

Step 4: Add a Servlet Class

the next tutorial step) - a new Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's "guest" attribute

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register ... the Enhancer to enhance the entity class, creates an EntityManagerFactory instance and stores

NetBeans/JPA Web Application Tutorial

. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database. Required Software For this tutorial

Java EE Web Tutorial

is represented by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB

NetBeans/JPA Spring MVC Web Tutorial

. Every visitor that has signed the guestbook is represented by a Guest JPA entity object and all the Guest entity objects are stored in an ObjectDB database. Required Software For this tutorial you will need

Eclipse/JPA Java EE Tutorial

by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database

Eclipse/JPA Web Application Tutorial

is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database. Required Software

JPA Web Application Tutorial

by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB

NetBeans/JPA Java EE Tutorial

the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in

Step 4: Add a Servlet Class

entity object is constructed and stored in the database. All the Guest entity objects are retrieved

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register ... ().getAttribute("emf"); emf.close(); } } The code above: Invokes the Enhancer to enhance the entity class

Step 4: Add a Servlet Class

that will be added in the next tutorial step) - a new Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database and stored in the request's

Step 4: Add a Servlet Class

(using a JSP form that is shown in the next tutorial step) - a new Guest entity object is constructed and stored in the database. All the Guest entity objects are retrieved from the database