About removal

manual

Deleting JPA Entity Objects

Explains how to use JPA to delete (remove) entity objects from the database.... Remove Cascading Remove Orphan Removal DELETE Queries Explicit Remove ... the Address object references, if any). Orphan Removal JPA 2 supports an additional and more aggressive remove ...

 
api-jpa

remove(entity)

Remove the entity instance.(Method of javax.persistence.EntityManager)

 
manual

Working with JPA Entity Objects

Explains the entity object lifecycle and the persistence context. Entity objects are in-memory instances of entity classes (persistable user defined classes), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA requires using entity objects for many oper ...

 
manual

CRUD Database Operations with JPA

Shows how to use Java/JPA to store, retrieve, update & delete. Given an EntityManager javax.persistence.EntityManager JPA interface Interface used to interact with the persistence context. See JavaDoc Reference Page... , em , that represents a JPA connection to the object dat ...

 
issue

Removing of an entity removes also another entity type

Hello, we have following case: ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. Bug Version: 1.04 Priority: Normal Status: Closed Replies: 6 Type:  Bug ...

 
issue

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. Feature Request Version: 2.7.1 Priority: High Status: Active Replies: 4 Type:  Feature Request ...

 
manual

CRUD Operations with JPA

Explains how to use JPA for CRUD database operations (persist, retrieve, update, remove). The following subsections explain how to use JPA for CRUD database operations: Storing JPA Entity Objects Retrieving JPA Entity Objects Updating JPA Entity Objects Deleting JPA Entity Objects ...

 
forum_thread

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ..     @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER, orphanRemoval=true, cascade= CascadeType.ALL)     private List<InvoiceItem> invoiceItemList; .. } ... 00:45 Orphan removal was not handled by ObjectDB for inverse (mapped by) collections. ... be done on the owner side, but in the case of orphan removal the remove operation has to be done on the owned (mapped by) side to ...

 
api-jpa

CascadeType.REMOVE

Cascade remove operation(Enum Constant of javax.persistence.CascadeType)

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? #1 2015-11-09 07:46 Hello, the following examples load and modify an entity, and load and remove the same entity. The ...