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/05 16:24:00 UTC

[jira] [Updated] (CAMEL-7550) Adding ability to look up objects using EntityManager.find in JPA component.

     [ https://issues.apache.org/jira/browse/CAMEL-7550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-7550:
-------------------------------
    Priority: Major  (was: Minor)

> Adding ability to look up objects using EntityManager.find in JPA component.
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-7550
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7550
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jpa
>            Reporter: Knut-HÃ¥vard Aksnes
>            Priority: Major
>             Fix For: Future
>
>
> Currently Camel-JPA offers 3 different ways of looking up objects
> # Using Query
> # Using NativeQuery
> # Using NamedQuery
> I would like a fourth: Using EntityManager.find
> EntityManager.find is simple to use and in many situations far more efficient out of the box than the other options, at least when using Hibernate. This is due to the fact that it uses the caches by default.
> The find method requires two arguments, one of them the key is natural to provide as incoming body, the second, the class of the object wanted is natural to have as a route parameter and/or header.



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