You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/06/24 04:50:00 UTC
[jira] [Commented] (ISIS-2763) JPA ApplicationUser /
ApplicationRole should not use CascadeType.ALL
[ https://issues.apache.org/jira/browse/ISIS-2763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17368618#comment-17368618 ]
ASF subversion and git services commented on ISIS-2763:
-------------------------------------------------------
Commit aba0e93a680c86d07e2d5830532b0292146fa78a in isis's branch refs/heads/ISIS-2763 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)