You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2021/05/28 05:23:00 UTC
[jira] [Created] (ISIS-2706) JPA does not persist entities with
application-defined primary keys
Daniel Keir Haywood created ISIS-2706:
-----------------------------------------
Summary: JPA does not persist entities with application-defined primary keys
Key: ISIS-2706
URL: https://issues.apache.org/jira/browse/ISIS-2706
Project: Isis
Issue Type: Bug
Components: Isis Persistence JPA
Affects Versions: 2.0.0-M5
Reporter: Daniel Keir Haywood
Fix For: 2.0.0-M6
Attachments: image-2021-05-28-06-20-20-489.png
For example, secman's ApplicationTenancy cannot be persisted as currently implemented.
Reason (perhaps): there is logic in ManagedObjects.EntityUtil.getState() to infer the entity state of the object, and for such entities it returns the state as PERSISTABLE_DESTROYED rather than DETACHED, meaning that flush transaction is never called.
!image-2021-05-28-06-20-20-489.png|width=815,height=653!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)