You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Daniel Kowalewski (JIRA)" <ji...@apache.org> on 2015/06/18 10:28:02 UTC

[jira] [Created] (CAMEL-8885) ConsumeLockEntity without ConsumeDelete

Daniel Kowalewski created CAMEL-8885:
----------------------------------------

             Summary: ConsumeLockEntity without ConsumeDelete
                 Key: CAMEL-8885
                 URL: https://issues.apache.org/jira/browse/CAMEL-8885
             Project: Camel
          Issue Type: Bug
          Components: camel-jpa
    Affects Versions: 2.15.2
            Reporter: Daniel Kowalewski


I think that condition at the beginning of the lock function is wrong:

{code}
protected boolean lockEntity(Object entity, EntityManager entityManager) {
        if (!getEndpoint().isConsumeDelete() || !getEndpoint().isConsumeLockEntity()) {
            return true;
        }
...
{code}

If I wanna just select and then update entity I should set consumeDelete=false, but If so entity will  newer be locked...




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