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

Use Cascade to delete foreign key constraint #188

Open
ding-ma opened this issue Mar 8, 2020 · 1 comment
Open

Use Cascade to delete foreign key constraint #188

ding-ma opened this issue Mar 8, 2020 · 1 comment
Assignees
Labels
Code help wanted Extra attention is needed
Milestone

Comments

@ding-ma
Copy link
Contributor

ding-ma commented Mar 8, 2020

an example would be deleting the advertisement if the user is deleted
@OneToMany(cascade = CascadeType.ALL, mappedBy="User")
We can do this instead of manually deleting everyone of them by iterating through.
see here

@ding-ma ding-ma added help wanted Extra attention is needed Code labels Mar 8, 2020
@ding-ma ding-ma added this to the Deliverable 3 milestone Mar 8, 2020
@Louismousine
Copy link
Member

yes

@Louismousine Louismousine assigned Mat-san and unassigned Louismousine Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants