camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8855) camel-jpa - Add support for JPA producer to delete records
Date Mon, 15 Jun 2015 15:37:01 GMT

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

Andrea Cosentino commented on CAMEL-8855:
-----------------------------------------

Thank you for reporting and opening this JIRA issue:-)

> camel-jpa - Add support for JPA producer to delete records
> ----------------------------------------------------------
>
>                 Key: CAMEL-8855
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8855
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jpa
>    Affects Versions: 2.15.2
>            Reporter: Tadayoshi Sato
>            Assignee: Andrea Cosentino
>
> Currently, camel-jpa producer
> {code:java}
> to("jpa:MyEntity?...")
> {code}
> can only invoke {{EntityManager.persist()}} or {{EntityManager.merge()}}, but sometimes
users want to send JPA entities to camel-jpa producer to delete them from the database, i.e.
invoke {{EntityManager.remove()}}.
> Maybe, introducing {{remove}} option to JPA producer is sufficient like this:
> {code:java}
> to("jpa:MyEntity?remove=true")
> {code}



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

Mime
View raw message