Blazebit / blaze-persistence

Rich Criteria API for JPA providers
https://persistence.blazebit.com
Apache License 2.0
697 stars 85 forks source link

SubviewAttributeFlusher always cascade deletes #1903

Open beikov opened 2 weeks ago

beikov commented 2 weeks ago

When removing OwningView that contains Subview, regardless of the cascading mapping, it will always remove the entity for Subview as well. This must be fixed.

@EntityView(OwningEntity.class)
interface OwningView {
  //...
  Subview getSubview();
}
@EntityView(SubEntity.class)
interface Subview {
  //...
}