blob: c4fc625ea1b962afdbc04351d0a3a3790df29e00 [file] [log] [blame]
// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
= JPA
:page-aliases: extensions/jpa.adoc
:linkattrs:
:cq-artifact-id: camel-quarkus-jpa
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Store and retrieve Java objects from databases using Java Persistence API (JPA).
:cq-deprecated: false
:cq-jvm-since: 1.0.0
:cq-native-since: 1.0.0
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0##
Store and retrieve Java objects from databases using Java Persistence API (JPA).
== What's inside
* xref:{cq-camel-components}::jpa-component.adoc[JPA component], URI syntax: `jpa:entityType`
Please refer to the above link for usage and configuration details.
== Maven coordinates
https://code.quarkus.io/?extension-search=camel-quarkus-jpa[Create a new project with this extension on code.quarkus.io, window="_blank"]
Or add the coordinates to your existing project:
[source,xml]
----
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-jpa</artifactId>
</dependency>
----
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
== Additional Camel Quarkus configuration
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`.