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

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

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

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

because of an attempt to store a new entity object with a primary key that is already in use by another existing entity object, the nested exception is: Other common causes for RollbackException are lock failures: Exceptions can also be thrown on an attempt to retrieve entity objects from the database. For example

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

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 the cache

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

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

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

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

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 ... entity . Inherited from From Parameters: entityClass - the target entity class Returns: the resulting join

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

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