ObjectDB Database Search

101-150 of 200 results

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

Type ... is not defined as an entity (@Entity is missing) (error 302)

.lab.data.bacti.CultureRqst is not defined as an entity (@ Entity is missing) (error 302) at com ... fine ( @PersistenceCapable and @ Entity are equivalent - but you may try adding also @ Entity ... " [ObjectDB 2.6.4_07] javax.jdo.JDOUserException Type java.util.ArrayList is not defined as an entity

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

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @ Entity class A { ... } and other entities with references to A.   e.g. @ Entity class B { A a; // explicit reference to A List list; // list of A's Set set ... Support Is there a query that can return all Objects (@ Entity and/or @Embedded) that include any

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

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.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

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.OneToOne

: Annotation Target: Method, Field Specifies a single-valued association to another entity class that has one-to-one multiplicity. It is not usually necessary to specify the associated target entity ... class to specify a relationship from the embeddable class to an entity class. If the relationship

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

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

Privacy Policy

the company, or other legal entity on behalf of which such individual is accessing or using the Service

JPA Value Generation Annotations

should be automatically generated when a new entity is persisted to the database. It allows defining

WHERE clause (JPQL / Criteria API)

that satisfy the WHERE predicate. For entity classes with millions of objects in the database

Obtaining a JPA Database Connection

that modify database content, such as storing, updating, and deleting entities , must be performed

JPA Query API

is not yet known as a managed entity class . In this case, only the TypedQuery variant is valid

Query Parameters in JPA

, parameters are more flexible and support elements that are unavailable as literals, such as entities . API

ObjectDB 2.9 Developer's Guide

programming using ObjectDB and JPA. Shows how to define JPA entity classes that can be persisted in

JPA Connections and Transactions

of managed entities or revert them to their pre-modified state. Committing a transaction propagates

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 .

Step 1: Create a Maven Web Project

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

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

Step 1: Create a Java EE 6 Web Project

: You should now have an Eclipse Java EE 6 project with ObjectDB/JPA support. The next step is creating a JPA Entity class .

Step 3: Define an EJB Session Bean

: persist - for storing a new  Guest entity in the database. getAllGuests - for retrieving

Step 3: Define a Spring DAO Component

- for storing a new  Guest entity in the database. getAllGuests - for retrieving all the existing 

Step 4: Add a Controller Class

has registered (using a JSP form that will be added in the next tutorial step) - a new Guest entity

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

Step 3: Define a Spring DAO Component

- for storing a new  Guest entity in the database. getAllGuests - for retrieving all the existing 

Step 1: Create a Java EE Web Project

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