[ https://issues.apache.org/jira/browse/ISIS-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated ISIS-2706: -------------------------------------- Description: 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. To reproduce, simply attempt to create a new ApplicationTenancy. !image-2021-05-28-06-20-20-489.png|width=783,height=627! was: 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=783,height=627! > 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 > Priority: Major > 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. > To reproduce, simply attempt to create a new ApplicationTenancy. > !image-2021-05-28-06-20-20-489.png|width=783,height=627! -- This message was sent by Atlassian Jira (v8.3.4#803005)