The Oracle Coherence Hibernate project implements integration points between Oracle Coherence/Coherence CE and the Hibernate Object/Relational Mapping (ORM) framework.
Two primary integration points are covered currently:
-
using Coherence as a second-level cache (2LC) in Hibernate
-
using Hibernate as a Coherence CacheStore implementation
Starting with Coherence Hibernate 3.x
, we support Jakarta EE. Coherence Hibernate 2.x
will
continue to support Java EE.
Coherence Hibernate | Java | Coherence CE | Hibernate | Jakarta | Git Branch/Tag |
---|---|---|---|---|---|
3.0.x |
|
|
|
✔ |
|
2.3.x |
|
|
|
|
Due to Hibernate Cache API changes, Coherence Hibernate 3.0.3
provides dedicated Maven modules targeting
those Hibernate versions:
-
coherence-hibernate-cache-53
supports Hibernate5.6.x
-
coherence-hibernate-cache-6
supports Hibernate6.x
Due to Hibernate Cache API changes, Coherence Hibernate 2.3.5
provides dedicated Maven modules targeting
those Hibernate versions:
-
coherence-hibernate-cache-4
supports Hibernate4.3.x
-
coherence-hibernate-cache-5
supports Hibernate5.0.x
and5.1.x
-
coherence-hibernate-cache-52
supports Hibernate5.2.x
-
coherence-hibernate-cache-53
supports Hibernate5.3.x
,5.4.x
,5.5.x
and5.6.x
Detailed project documentation is available on the Coherence Hibernate website. This includes the reference documentation as well as extensive JavaDoc for the Coherence Hibernate source code.
3.0.3 |
||
3.0.4-SNAPSHOT |
||
2.3.5 |
||
2.3.6-SNAPSHOT |
Note
|
The Apache Maven-based snapshots and releases for this project are published to Maven Central. |
Coherence Hibernate | Java | Coherence CE | Jakarta EE | Git Branch/Tag |
---|---|---|---|---|
3.0.3 |
|
|
✅ |
|
3.0.4-SNAPSHOT |
|
|
✅ |
|
2.3.5 |
|
|
|
|
2.3.6-SNAPSHOT |
|
|
|
Hibernate | Coherence Hibernate 2.3.x | Coherence Hibernate 3.0.x |
---|---|---|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
✅ |
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
The reference documentation will also refer to various demo and sample applications. Those are part of this repository, and you can find those in the samples module.
In order to build Coherence Hibernate (main branch), you need to have installed:
Check out the project using Git:
git clone https://github.com/coherence-community/coherence-hibernate.git
cd coherence-hibernate
Coherence Hibernate uses Apache Maven as build tool. You do not need to have Maven installed to build the project. Simply use the provided Maven Wrapper, e.g.:
-
Windows:
mvnw.cmd clean package
-
Linux/Mac:
./mvnw clean package
Build the entire project using Maven:
./mvnw clean package
In case you are offline, and you run into issues building the project, e.g. the Coherence cluster as part of JUnit tests does not start up successfully, then you may have to provide additional command line arguments:
./mvnw clean package -DargLine="-Dcoherence.localhost=127.0.0.1 -Djava.net.preferIPv4Stack=true"
In case you have questions or if you run into issue using the Coherence Hibernate project, please feel free to reach out to us either via:
-
Stackoverflow using the oracle-coherence tag
Both support channels are monitored by the project community.
We would love to review your Pull requests. Please see the contributor guidelines for details.
Coherence Hibernate is Open Source software released under The Universal Permissive License (UPL), Version 1.0.