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

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities ... . But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic how we detect the existing EntityB instances they must be converted to the new Entity . With the same ID

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity . It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity .   It would be very helpful if you can add a few information

List managed entities for a given entity manager

Hi, Is there a way to find the number of managed entities given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful

find out if an entity is refered by other entities

Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

.8_06 All our entities are enhanced. There are nested entities in following hierarchy: @ Entity ... ? support Support No, there are only entities involved. Have you an idea why this issue occurs? We try

CRUD Database Operations with JPA

Given an EntityManager instance, em , which manages the persistence context for the database, you can use it to store, retrieve, update, and delete objects. Storing new entities The following code ... ; i = 100) { em. remove (p); // delete entity } else { p.setX(p.getX() + 100); // update entity

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 entities 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 entities per database file. This could be useful for small projects, academic assignments, evaluation and learning. ObjectDB

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 ... when the persistence context is synchronized with the database and when in-memory entity changes are written

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

jakarta.persistence.JoinColumn

: Annotation Target: Method, Field Specifies a column for joining an entity association or element ... column is in the table of the source entity or embeddable. If the join is for a unidirectional ... entity . If the join is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne

jakarta.persistence.criteria.Root

: - the entity type referenced by the root Super Interfaces: From , Path , FetchParent , Expression , Selection , TupleElement A root type in the from clause. Query roots always reference entities . Since: Jakarta ... the metamodel entity corresponding to the root. Overrides Path.getModel Returns: metamodel entity

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities . Performing similar calls repeatedly hence increases the number of references to entities not longer needed ... that all your classes are enhanced. The screenshot indicates using some entity objects ( MappingImpl

jakarta.persistence.NamedEntityGraph

Interfaces: Annotation Target: Type Defines a named entity graph . This annotation must be applied to the root entity of the graph, and specifies the limits of the graph of associated attributes and entities fetched when an operation which retrieves an instance or instances of the root entity is executed

jakarta.persistence.criteria.From

, TupleElement Represents a bound type, usually an entity that appears in the from clause, but may also be an embeddable belonging to an entity in the from clause. Serves as a factory for Join s of associations ... and add an inner join to the given entity . Parameters: entityClass - the target entity class Returns

jakarta.persistence.criteria.Join

, Expression , Selection , TupleElement A join to an entity , embeddable, or basic type. Since: Jakarta ... target, if any, or null if the target of the join is an entity type. Returns: metamodel attribute or ... Persistence (JPA) 1.0 Join join ( Class entityClass ) Create and add an inner join to the given entity

jakarta.persistence.PersistenceUtil

from the Persistence class is used to determine the load state of an entity or entity attribute regardless of which persistence provider in the environment created the entity . Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods boolean isLoaded ( Object entity , String attributeName

jakarta.persistence.MapsId

a simple primary key of the parent entity . The value element specifies the attribute within a composite key to which the relationship attribute corresponds. If the primary key of the entity is of the same Java type as the primary key of the entity referenced by the relationship, the value attribute is not

jakarta.persistence.criteria.PluralJoin

of the join is an entity type. Inherited from Join Returns: metamodel attribute or null ... join to the given entity . Inherited from From Parameters: entityClass - the target entity class ... , JoinType joinType ) Create and add a join to the given entity . Inherited from From Parameters

jakarta.persistence.criteria.MapJoin

of the join is an entity type. Inherited from Join Returns: metamodel attribute or null. Since: Jakarta ... ( Class entityClass ) Create and add an inner join to the given entity . Inherited from From Parameters: entityClass - the target entity class Returns: the resulting join. Since: Jakarta Persistence (JPA

jakarta.persistence.criteria.SetJoin

of the join is an entity type. Inherited from Join Returns: metamodel attribute or null. Since: Jakarta ... ( Class entityClass ) Create and add an inner join to the given entity . Inherited from From Parameters: entityClass - the target entity class Returns: the resulting join. Since: Jakarta Persistence

jakarta.persistence.criteria.CollectionJoin

, or null if the target of the join is an entity type. Inherited from Join Returns: metamodel ... to the given entity . Inherited from From Parameters: entityClass - the target entity class Returns ... joinType ) Create and add a join to the given entity . Inherited from From Parameters: entityClass

jakarta.persistence.criteria.ListJoin

of the join is an entity type. Inherited from Join Returns: metamodel attribute or null ... and add an inner join to the given entity . Inherited from From Parameters: entityClass - the target entity class Returns: the resulting join. Since: Jakarta Persistence (JPA) 3.2 Join join ( Class

jakarta.persistence.DiscriminatorValue

entity type. The DiscriminatorValue annotation can only be specified on a concrete entity class ... -specific function is used to generate a value representing the entity type. If the DiscriminatorType is STRING , the discriminator value default is the entity name. The inheritance strategy

jakarta.persistence.metamodel.EntityType

: - The represented entity type. Super Interfaces: IdentifiableType , Bindable , ManagedType , Type An instance of EntityType represents an entity type. Since: Jakarta Persistence (JPA) 2.0 Public Instance ... element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY _TYPE , the Java type

jakarta.persistence.criteria.CriteriaUpdate

: - the entity type that is the target of the update Super Interfaces: CommonAbstractCriteria ... Methods Root from ( Class entityClass ) Create and add a query root corresponding to the entity that is the target of the update. A CriteriaUpdate object has a single root, the entity

jakarta.persistence.criteria.CriteriaDelete

: - the entity type that is the target of the DELETE Super Interfaces: CommonAbstractCriteria ... entityClass ) Create and add a query root corresponding to the entity that is the target of the DELETE. A CriteriaDelete object has a single root, the entity that is being deleted. Parameters: entityClass

JPA Criteria Query Expressions

predicates. A navigation path to an attribute value or a referenced entity . A type-safe representation

Download and Run

Download and Run @ Entity record Point(int x, int y) { }

JPA Named Queries Annotations

). It is defined on an entity or mapped superclass and assigned a unique name for retrieval

Eclipse/JPA Spring MVC Web Tutorial

that has signed the guestbook is represented by a  Guest JPA entity and all the  Guest entities

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity , and all Guest entities are stored in

Step 4: Add a Servlet Class

the next tutorial step) - a new Guest entity is constructed and stored in the database. All the Guest entities

Step 3: Add a Context Listener Class

The Guest entities 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 it as

NetBeans/JPA Web Application Tutorial

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

Java EE Web Tutorial

is represented by a  Guest entity and all the  Guest entities are stored in an ObjectDB database

NetBeans/JPA Spring MVC Web Tutorial

. Every visitor that has signed the guestbook is represented by a Guest JPA entity and all the Guest entities

Eclipse/JPA Java EE Tutorial

by a Guest entity and all the Guest entities are stored in an ObjectDB database. Required Software

Eclipse/JPA Web Application Tutorial

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

JPA Web Application Tutorial

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

NetBeans/JPA Java EE Tutorial

the guestbook is represented by a Guest entity and all the Guest entities are stored in an ObjectDB database

Step 4: Add a Servlet Class

entity is constructed and stored in the database. All the Guest entities are retrieved from

Report Generation with BIRT and JPA

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

Step 4: Add a Controller Class

the next tutorial step) - a new Guest entity is constructed and stored in the database. Processing

Step 1: Create a Maven Web Project

Framework and ObjectDB/JPA support. The next step is  creating a JPA Entity class .

Step 1: Create a Java Project

with ObjectDB/JPA support. The next step is creating a JPA Entity class .