Skip to content

Cannot delete Entitites associated with multiple Datastreams #15

@SpeckiJ

Description

@SpeckiJ

If a Thing is linked to multiple Datastreams, or two Datastreams reference the same Dataset, deleting it fails due to ConstraintViolationExceptions.

o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: update or delete on table "dataset" violates foreign key constraint "fk_dataset_datastream" on table "datastream_dataset"

This is caused by the cascading delete failing to delete the underlying dataset as it is still linked to other entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv1affects v1 (olingo-version) of the STAv2affects v2 (no-olingo version) of the STA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions