About orphan

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 ... that the Address object references, if any). Orphan Removal JPA 2 supports an additional and more aggressive remove ...

 
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; .. } ... 2011-06-09 00:45 Orphan removal was not handled by ObjectDB for inverse (mapped by) ... should 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) ...

 
forum_thread

Handling deleted references

Hi support team, I have a problem when using DELETE query to delete Entity instances. We use the following hierarchy: ... by exactly one User instance you may consider using orphan removal . ObjectDB Support ObjectDB - ...

 
release

2.2.8

... entity object in the L2 cache. Fixed orphan removal of owner entity object in bidirectional relationship. ...

 
release

2.2.7

... entity object in the L2 cache. Fixed orphan removal of owner entity object in bidirectional relationship. ...

 
release

2.6.1

... Fixed a bug in cascading remove when orphan removal is set. Fixed an IllegalAccessError exception ... references. Fixed a bug in detecting orphan entities in reflection mode. Fixed a bug in listing ... entity object in the L2 cache. Fixed orphan removal of owner entity object in bidirectional relationship. ...

 
forum_thread

How best to unbind all names?

My JDO application does inserts with binds, and then subsequently does bulk deletes using this code: ... be large so I am concerned that I will get a build-up of "orphan" bindings (bookmarks). Instead of the above code, I could iterate over ... primary key or as a unique index. This will also solve the orphan problem.   ObjectDB Support ...

 
release

2.6.0

... Fixed a bug in cascading remove when orphan removal is set. Fixed an IllegalAccessError exception ... references. Fixed a bug in detecting orphan entities in reflection mode. Fixed a bug in listing ... entity object in the L2 cache. Fixed orphan removal of owner entity object in bidirectional relationship. ...

 
release

2.5.7

... Fixed a bug in cascading remove when orphan removal is set. Fixed an IllegalAccessError exception ... references. Fixed a bug in detecting orphan entities in reflection mode. Fixed a bug in listing ... entity object in the L2 cache. Fixed orphan removal of owner entity object in bidirectional relationship. ...

 
issue

New Java 8 (JDK 1.8) Collection Methods

ObjectDB version 2.5.5 (and above) supports Java 8 (JDK 1.8). Tracking changes to collections and maps using some new Java 8 methods is currently not fully supported. The main known issue is that orphan removal does not happen as a result of removing a reference to an object (which becomes an orphan) using the new methods: removeIf(predicate) and remove(key, value). ... not fully supported. The main known issue is that orphan removal does not happen as a result of removing a reference to an object (which becomes an orphan) using the new methods:  removeIf(predicate) and remove(key, ...