Skip to content

Java: cascade.delete hint #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Java: cascade.delete hint #1986

wants to merge 2 commits into from

Conversation

MattSchur
Copy link
Contributor

No description provided.

@MattSchur MattSchur requested a review from smahati as a code owner July 24, 2025 11:56
@MattSchur MattSchur requested a review from agoerler July 24, 2025 11:56
@MattSchur MattSchur requested a review from agoerler July 24, 2025 12:53
@@ -222,7 +222,10 @@ long deleteCount = service.run(Delete.from("bookshop.Orders").byId(1000)).rowCou
```

::: tip
To disable cascade delete for a specific Delete statement, add a `cascade.delete` hint(#hana-hints) with value `false`.
To disable cascade delete for a specific Delete statement, add a hint(#hana-hints):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#hana-hints

this is a DB-independent hint. The section targeted by the link is named "Query Hints". Hence I think this is OK. However, I think the section "Query Hints" could also mention query-independent hints:

Quer Hints

Runtime Hints

DB-specific Hints


I also think we should introduce "hana." as a synonymn for the "hdb." prefix. Would be more natural.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the hint section should not be specific to HANA: #1942

@agoerler
Copy link
Contributor

We need to have another look at the concepts before we can merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants