This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 271f8e2ded6 CAMEL-18742 - camel-jpa: deprecated transactionManager 
(#9034)
271f8e2ded6 is described below

commit 271f8e2ded6b6a1f90b7d05c31a00917ab1757c1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Jan 10 20:49:09 2023 +0100

    CAMEL-18742 - camel-jpa: deprecated transactionManager (#9034)
---
 .../generated/resources/org/apache/camel/catalog/components/jpa.json    | 2 +-
 .../apache/camel/builder/component/dsl/JpaComponentBuilderFactory.java  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jpa.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jpa.json
index 03a6e475fb5..c88de42202c 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jpa.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jpa.json
@@ -26,7 +26,7 @@
     "entityManagerFactory": { "kind": "property", "displayName": "Entity 
Manager Factory", "group": "common", "label": "", "required": false, "type": 
"object", "javaType": "javax.persistence.EntityManagerFactory", "deprecated": 
false, "autowired": false, "secret": false, "description": "To use the 
EntityManagerFactory. This is strongly recommended to configure." },
     "joinTransaction": { "kind": "property", "displayName": "Join 
Transaction", "group": "common", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "The camel-jpa component 
will join transaction by default. You can use this option to turn this off, for 
example if you use LOCAL_RESOURCE and join transaction doesn't work with your 
JPA provider. This option can also be set [...]
     "sharedEntityManager": { "kind": "property", "displayName": "Shared Entity 
Manager", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Whether to use Spring's 
SharedEntityManager for the consumer\/producer. Note in most cases 
joinTransaction should be set to false as this is not an EXTENDED 
EntityManager." },
-    "transactionManager": { "kind": "property", "displayName": "Transaction 
Manager", "group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.springframework.transaction.PlatformTransactionManager", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
use the PlatformTransactionManager for managing transactions." },
+    "transactionManager": { "kind": "property", "displayName": "Transaction 
Manager", "group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.springframework.transaction.PlatformTransactionManager", 
"deprecated": true, "autowired": false, "secret": false, "description": "To use 
the PlatformTransactionManager for managing transactions." },
     "transactionStrategy": { "kind": "property", "displayName": "Transaction 
Strategy", "group": "common", "label": "", "required": false, "type": "object", 
"javaType": "org.apache.camel.component.jpa.TransactionStrategy", "deprecated": 
false, "autowired": false, "secret": false, "description": "To use the 
TransactionStrategy for running the operations in a transaction." },
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a me [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
should be started lazy (on the first message). By starting lazy you can use 
this to allow CamelContext and routes to startup in situations where a producer 
may otherwise fail during star [...]
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JpaComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JpaComponentBuilderFactory.java
index af9992ab825..6f8dc4f1684 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JpaComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JpaComponentBuilderFactory.java
@@ -133,6 +133,7 @@ public interface JpaComponentBuilderFactory {
          * @param transactionManager the value to set
          * @return the dsl builder
          */
+        @Deprecated
         default JpaComponentBuilder transactionManager(
                 org.springframework.transaction.PlatformTransactionManager 
transactionManager) {
             doSetProperty("transactionManager", transactionManager);

Reply via email to