Skip to content

Commit

Permalink
Fixed JPA (CAMEL-19225)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Aug 3, 2023
1 parent 01d55a0 commit 256e2f9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 63 deletions.
3 changes: 0 additions & 3 deletions docs/modules/ROOT/pages/reference/extensions/jpa.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ The extension leverages https://quarkus.io/guides/hibernate-orm[Quarkus Hibernat

Refer to the https://quarkus.io/guides/hibernate-orm[Quarkus Hibernate ORM] documentation to see how to configure Hibernate and your datasource,

When a single persistence unit is used, the Camel Quarkus JPA extension will automatically configure the JPA component with a
`EntityManagerFactory` and `TransactionManager`.

Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@
*/
package org.apache.camel.quarkus.component.jpa.deployment;

import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import org.apache.camel.component.jpa.JpaComponent;
import org.apache.camel.quarkus.component.jpa.CamelJpaRecorder;
import org.apache.camel.quarkus.core.deployment.spi.CamelRuntimeBeanBuildItem;

class JpaProcessor {

Expand All @@ -33,17 +27,4 @@ class JpaProcessor {
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

@Record(ExecutionTime.RUNTIME_INIT)
@BuildStep
void configureJpaComponentBean(
BuildProducer<CamelRuntimeBeanBuildItem> camelRuntimeBean,
CamelJpaRecorder recorder) {

camelRuntimeBean.produce(
new CamelRuntimeBeanBuildItem(
"jpa",
JpaComponent.class.getName(),
recorder.createJpaComponent()));
}
}
3 changes: 0 additions & 3 deletions extensions/jpa/runtime/src/main/doc/configuration.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
The extension leverages https://quarkus.io/guides/hibernate-orm[Quarkus Hibernate ORM] to provide the JPA implementation via Hibernate.

Refer to the https://quarkus.io/guides/hibernate-orm[Quarkus Hibernate ORM] documentation to see how to configure Hibernate and your datasource,

When a single persistence unit is used, the Camel Quarkus JPA extension will automatically configure the JPA component with a
`EntityManagerFactory` and `TransactionManager`.

This file was deleted.

0 comments on commit 256e2f9

Please sign in to comment.