[
https://issues.apache.org/jira/browse/ISIS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17368622#comment-17368622
]
ASF subversion and git services commented on ISIS-2763:
-------------------------------------------------------
Commit aba0e93a680c86d07e2d5830532b0292146fa78a in isis's branch
refs/heads/master from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=aba0e93 ]
ISIS-2763: changes user/role mapping to CascadeType of MERGE, PERSIST
Also programmatically persists changes to both ApplicationUser and
ApplicationRole afterwards
> JPA ApplicationUser / ApplicationRole should not use CascadeType.ALL
> --------------------------------------------------------------------
>
> Key: ISIS-2763
> URL: https://issues.apache.org/jira/browse/ISIS-2763
> Project: Isis
> Issue Type: Bug
> Components: Isis Extensions SecMan
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Assignee: Daniel Keir Haywood
> Priority: Major
> Fix For: 2.0.0-M6
>
>
> This can result in cascading the deletion of other ApplicationUsers.
> [https://vladmihalcea.com/the-best-way-to-use-the-manytomany-annotation-with-jpa-and-hibernate/]
>
> [https://thorben-janssen.com/avoid-cascadetype-delete-many-assocations/]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)