The AcrossHibernateJpaModule
activates JPA support for an entire Across application. It allows other modules to subscribe their entities to the shared JPA EntityManager
represented by the AcrossHibernateJpaModule
. The JPA implementation is built on top of Hibernate.
This module also activates support for Spring Data JpaRepository
implementations and comes with a set of helpers to facilitate repository and entity implementations.
The AcrossHibernateJpaModule
is compatible with regular Spring Boot JPA starter. If you have an Across application using JPA in your application module, you can add this module to your application, and it will transparently take over the EntityManager
creation.
The Hibernate JPA module dependency is present in Across Platform.
<dependency>
<groupId>com.foreach.across.modules</groupId>
<artifactId>across-hibernate-module</artifactId>
</dependency>
Module name: AcrossHibernateJpaModule
AcrossHibernateJpaModule
can also serve as a base for multiple modules managing a different set of entities for other (or the same) datasources. The reference documentation section explains how you can easily create your own shared module with a Hibernate EntityManager
.
Version | Across Core | Across Platform |
---|---|---|
4.x | 5.x | 5.x |
3.x | 3.x | 2.1.x |
2.x | 2.x | 2.0.x |
1.x | 1.1.2+ | 1.1.x |