Details
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
- is related to
-
CAMEL-10245 Persistence Exception when trying to delete detached entity
-
- Resolved
-