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

camel-jpa - Add support for JPA producer to delete records

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.2
    • Fix Version/s: 2.16.0
    • Component/s: camel-jpa
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Currently, camel-jpa producer

      to("jpa:MyEntity?...")
      

      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:

      to("jpa:MyEntity?remove=true")
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ancosen Andrea Cosentino
                Reporter:
                tadayosi Tadayoshi Sato
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: