camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kowalewski (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8885) ConsumeLockEntity without ConsumeDelete
Date Thu, 18 Jun 2015 08:28:02 GMT
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)

Mime
View raw message