Knut-Håvard Aksnes created CAMEL-7550:
-----------------------------------------
Summary: 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: Wish
Components: camel-jpa
Reporter: Knut-Håvard Aksnes
Priority: Minor
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
(v6.2#6252)