[jboss-jira] [JBoss JIRA] (WFLY-3674) In non-transactional entity manager invocation, add extension to defer entity detach until persistence context is closed

Scott Marlow (JIRA) issues at jboss.org
Tue Jul 29 19:40:29 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988795#comment-12988795 ] 

Scott Marlow commented on WFLY-3674:
------------------------------------

Adding "jboss.as.jpa.deferdetach" persistence unit hint that may be set to true to enable WFLY-3674 extension.
{quote}
<property name="jboss.as.jpa.deferdetach" value="true" />
{quote}

> In non-transactional entity manager invocation, add extension to defer entity detach until persistence context is closed
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-3674
>                 URL: https://issues.jboss.org/browse/WFLY-3674
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JPA / Hibernate
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>             Fix For: 9.0.0.Beta1
>
>
> For compatibility with earlier JBoss application server versions (5.0/6.0), add an extension that allows the persistence context to last until the referencing persistence context is closed.
> For example, in a session method that has no active JTA transaction, entities returned, will not cleared from the persistence context, until the session method completes.  This extension is only introduced to allow compatibility with older application server versions.  



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list