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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.2
    • 2.16.0
    • camel-jpa
    • None
    • 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

              acosentino Andrea Cosentino
              tadayosi Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: