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)