ObjectDB ObjectDB

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


To post on this website please sign in.