[ 
https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152930#comment-14152930
 ] 

Thomas Hug commented on DELTASPIKE-734:
---------------------------------------

Kinda surprised that the EM producer is not complaining. Can you change the 
OciCommerceEntityManagerProducer component request scoped and the persistence 
context to not extended? That should fix the problem.

For some details on the extended PC, see 
http://stackoverflow.com/questions/2547817/what-is-the-difference-between-transaction-scoped-persistence-context-and-extend


> remove() and removeFlush() doesn't seem to perform the operation
> ----------------------------------------------------------------
>
>                 Key: DELTASPIKE-734
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-734
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Data-Module
>    Affects Versions: 1.0.2
>         Environment: Windows 7, JBoss EAP 6.3, Deltaspike 1.0.2, intel i5
>            Reporter: Loïc Prieto Dehennault
>
> We've recently moved the project from a custom-built JPA query 
> builder/executor to deltaspike Data, using the EntityRepository interface to 
> perform CRUD operations, and the remove and removeFlush methods of 
> EntityRepository do not seem to perform the operation. They pass without 
> error, but nothing is affected.
> The transaction context is provided by a Stateless EJB bean, which invokes 
> the methods of the repositories (that implement the EntityRepository and 
> CriteriaSupport interfaces).
> Update and create operations are performed correctly, only the remove 
> operation is not completed.
> Thats all I can think off the top of my head, if you need any more info, 
> please ask for it and I will gladly provide.
> Thanks,
> Loïc Prieto.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to