You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2019/08/06 14:03:00 UTC

[jira] [Commented] (CAMEL-12737) jpa - new @OnConsumed annotation for on route read db updates

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

Claus Ibsen commented on CAMEL-12737:
-------------------------------------

What's the use-case for this, you can also update the entity etc in a bean/processor from a route etc as a workaround.

 

> jpa - new @OnConsumed annotation for on route read db updates
> -------------------------------------------------------------
>
>                 Key: CAMEL-12737
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12737
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jpa
>            Reporter: Ronak Patel
>            Priority: Minor
>
> Create {{@OnConsumed}} annotation to make any update on entity on read
> currently
> - {{@PreConsumed}} only updates the entity NOT the db row - {{@OnConsumed}} annotation should updated db row
> - {{@Consumed}} only updates on Route completion



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)