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

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

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

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

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

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

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