[
https://issues.apache.org/jira/browse/AIRAVATA-2996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797496#comment-16797496
]
Marcus Christie commented on AIRAVATA-2996:
-------------------------------------------
http://swexplorations.blogspot.com/2014/08/openjpa-issues-part-2.html
Looks like you can get ON DELETE CASCADE to work with orphanRemoval if you add
@ForeignKey(deleteAction = ForeignKeyAction.CASCADE)
to the @ManyToOne relationship from child to parent.
See also
https://stackoverflow.com/questions/35494608/foreign-key-cascade-delete-not-working-as-expected-in-openjpa-postgresql
See also https://issues.apache.org/jira/browse/OPENJPA-39
> Cannot delete applications in the django portal.
> ------------------------------------------------
>
> Key: AIRAVATA-2996
> URL: https://issues.apache.org/jira/browse/AIRAVATA-2996
> Project: Airavata
> Issue Type: Bug
> Components: Django Portal
> Affects Versions: 0.18
> Environment: https://beta-sciencegateway.brylinski.org
> Reporter: Eroma
> Assignee: Marcus Christie
> Priority: Major
> Fix For: 0.18
>
> Attachments: Screen Shot 2019-03-13 at 1.58.23 AM.png
>
>
> Cannot delete applications from the application catalog in Django portal.
> Tried deleting the interface first and also tried deleting each and every
> inputs and outputs in the interface but didnt work.
>
> Getting error 'Internal Server error'
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)