Skip to content
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

Getting the Deleted Entity #1518

Closed
ard333 opened this issue Aug 26, 2024 · 3 comments
Closed

Getting the Deleted Entity #1518

ard333 opened this issue Aug 26, 2024 · 3 comments

Comments

@ard333
Copy link

ard333 commented Aug 26, 2024

Hi, I need to get the deleted entity, I checked here already.
https://docs.spring.io/spring-data/cassandra/reference/cassandra/events.html

On AbstractCassandraEventListener there is no way to get the entity.
On EntityCallbacks there is no AfterDeleteCallback like on the relational.

Did I miss something or there is another way?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 26, 2024
@mp911de
Copy link
Member

mp911de commented Aug 26, 2024

Deletes can be issued by entity and by Id. Therefore, the commonality is to provide only the statement that was used to remove a Cassandra row. It doesn't make sense to load the entity when deleting the entity by id. However, you can leverage BeforeDeleteEvent and extract the identifier part from the delete statement so that you load the entity before it is being deleted.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Aug 26, 2024
@spring-projects-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Sep 2, 2024
@spring-projects-issues
Copy link

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants