Open bystam opened 3 weeks ago
I have one test failure on Sqlite, and looking more closely at it, it feels light it might be a separate SQLite-oriented bug perhaps?
The table/entity pair is declared like this - where requestId
is the id
column of the entity
I noticed when running SQL logging that the following:
seems to perform soft delete on the wrong ID:
SQL: INSERT INTO Requests (requestId) VALUES ('123')
SQL: UPDATE Requests SET deleted_at='2024-06-07 07:11:38.703' WHERE Requests.requestId = '1'
and indeed, the Entity instance seems to have been given the wrong ID:
Bug has been filed and reproduced in tests here:
Thank you for PR, it looks interesting, I'll create an issue in YouTrack for the discussion of it,
Also thank you for describing the bug, I checked another PR and related YT issue, here (/pull/2119) is a PR that should fix it.
Thank you for PR, it looks interesting, I'll create an issue in YouTrack for the discussion of it,
I have one here: https://youtrack.jetbrains.com/issue/EXPOSED-403/DAO-soft-delete-restriction-support Unless you meant something else :)
This is my attempt at showcasing/drafting a version of "DAO restrictions", similarly to how
@SQLRestriction
works in Hibernate (which can be used for soft deletes), but without the magic annotation setup.Youtrack: https://youtrack.jetbrains.com/newIssue?project=EXPOSED&draftId=25-5413167
Usage:
Why "restriction"?
AND <restriction>
fashion, in my mind