[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151813#comment-14151813 ]
Thomas Hug edited comment on DELTASPIKE-734 at 9/29/14 3:45 PM: ---------------------------------------------------------------- Sounds to me like the EM is not attached to the TX - the flush should happen when the TX is commited, which is when you should see the Hibernate SQL in the log. Just to be sure: the EM is configured with a JTA datasource? You can try injecting (with @Inject) your EM and call remove there - it should have the same effect (none) as calling it on the repository. How are you producing the EM? was (Author: thomashug): Sounds to me like the EM is not attached to the TX - the flush should happen when the TX is commited, which is when you should see the Hibernate SQL in the log. Just to be sure: the EM configured with a JTA datasource? You can try injection (with @Inject) your EM and call remove there - it should have the same effect (none) as calling it on the repository. How are you producing the EM? > 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)