-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
component: entity-viewcomponent: updatable-entity-viewkind: bugworth: highImplementing this has a high worthImplementing this has a high worth
Description
An entity model with e.g.
@Entity
public class Document {
@Id
Integer id;
@OneToMany(mappedBy = "revision", cascade = REMOVE)
Set<DocumentRevision> revisions;
}
@Entity
public class DocumentRevision {
@Id
Integer id;
@ManyToOne(fetch = LAZY)
Document document;
@ManyToOne(fetch = LAZY, cascade = REMOVE)
DocumentFile file;
}
@Entity
public class DocumentFile {
@Id
Integer id;
//...
}
Removing with evm.remove(em, DocumentIdView.class, 1)
where
@Entity
public interface DocumentIdView {
@IdMapping
Integer getId();
}
A listener for the DocumentFile
is not triggered.
It looks like maybe UnmappedBasicAttributeCascadeDeleter#removeWithoutPreCascadeDelete
doesn't trigger remove listeners.
EugenMayer
Metadata
Metadata
Assignees
Labels
component: entity-viewcomponent: updatable-entity-viewkind: bugworth: highImplementing this has a high worthImplementing this has a high worth