Home » Support » Forum » Entity not removed 100%

Entity not removed 100%


When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany(cascade=CascadeType.ALL)

This is what it remains when I check the removed object from another object's attributes




It is the application responsibility to clear references to removed objects. Cascading removal operates on the other direction and cannot clear references after removal. If you use bidirectional relationship then you only have to clear the owner side, the owned side will be cleared automatically after refresh.

Could you please change your username from "Unknown" to something less confusing? Thanks!

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login