Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7550

Adding ability to look up objects using EntityManager.find in JPA component.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0.RC1, 3.0.0
    • camel-jpa
    • None
    • Unknown

    Description

      Currently Camel-JPA offers 3 different ways of looking up objects

      1. Using Query
      2. Using NativeQuery
      3. 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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            khaksnes Knut-HÃ¥vard Aksnes
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: