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

ASF GitHub Bot commented on CAMEL-10265:
----------------------------------------

GitHub user igarashitm opened a pull request:

    https://github.com/apache/camel/pull/1536

    CAMEL-10265 Allow named queries in JPA Producer

    Added support for query, namedQuery and nativeQuery to the JPA producer. 
Now it also support Simple expression in the value of the parameters so it can 
retrieve a value from Message body, header and etc.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/igarashitm/camel CAMEL-10265

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1536.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1536
    
----
commit fab4ddb7d3334b65abd1b46941c0d953ac845e80
Author: Tomohisa Igarashi <[email protected]>
Date:   2017-03-14T07:21:18Z

    CAMEL-10265 Allow named queries in JPA Producer
    
    Added support for query, namedQuery and nativeQuery to the JPA producer. 
Now it also support Simple expression in the value of the parameters so it can 
retrieve a value from Message body, header and etc.

----


> Allow named queries in JPA Producer
> -----------------------------------
>
>                 Key: CAMEL-10265
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10265
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-jpa
>            Reporter: Darius Cooper
>            Assignee: Tomohisa Igarashi
>             Fix For: Future
>
>
> Consider a use-case where a message has some content (say a list of IDs) that 
> we want to transform into a list of objects retrieved from the database. One 
> could do this by using the camel-sql component as a producer. However, I 
> don't think there's good way to do this using the camel-jpa component. 
> As a producer, camel-jpa does not support named-queries. We have some places 
> where we use JPA over some tables, but in use-cases like this, we switch to 
> camel-sql for that step, or code a processer. Workable, but a slight 
> impedance mis-match.
> It would be nice to add support for named-query (and related options) to the 
> producer in camel-jpa.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to