Hibernate OGM 5.4.0.Beta1 has been released!
The main differences from the previous release is the upgrade to Hibernate ORM 5.3.0.Final, the support for Infinispan Remote native and JPQL queries (without requiring Hibernate Search), and the use of cluster counters for local caches when generating sequences with Infinispan Embedded.
More detail available in the release notes.
Hibernate ORM 5.3
Hibernate ORM 5.3 has a huge list of improvements, most notably it implements JPA 2.2.
You can find all the details about it in the Hibernate ORM 5.3.0.Final release post.
Infinispan Remote queries
You can execute queries in Infinispan using the query language called Ickle. This latest version of Hibernate OGM will convert the JPQL queries into an equivalent in Ickle. You can also run native query directly.
Here is an example of a native query execution:
String ickleQuery = "from HibernateOGMGenerated.Registry where level > 3 order by start"
List result = session.createNativeQuery( ickleQuery )
.addEntity( Employee.class )
.list();
With Ickle you can also write queries which use Infinispan’s full-text capabilities backed by Apache Lucene, as long as the field is indexed. It’s a nice language combining some notions from JPQL and the Lucene query languages.
Note that this will only work if the cache already exists on the server and the fields are indexed. Currently Hibernate OGM is able to automatically generate protobuf schemas but the generated metadata will not include index definitions, so you might need to add these as needed.
Where can I get Hibernate OGM?
You can include in your project the dialect of your choice using these Maven coordinates:
-
-
Remote: org.hibernate.ogm:hibernate-ogm-infinispan-remote:5.4.0.Beta1
-
Embedded: org.hibernate.ogm:hibernate-ogm-infinispan-embedded:5.4.0.Beta1
-
-
MongoDB: org.hibernate.ogm:hibernate-ogm-mongodb:5.4.0.Beta1
-
Neo4j: org.hibernate.ogm:hibernate-ogm-neo4j:5.4.0.Beta1
-
Infinispan Remote: org.hibernate.ogm:hibernate-ogm-featurepack-infinispan-remote:5.4.0.Beta1
-
Infinispan Embedded: org.hibernate.ogm:hibernate-ogm-featurepack-infinispan-embedded:5.4.0.Beta1
-
MongoDB: org.hibernate.ogm:hibernate-ogm-featurepack-mongodb:5.4.0.Beta1
-
Neo4j: org.hibernate.ogm:hibernate-ogm-featurepack-neo4j:5.4.0.Beta1
-
Alternatively, you can download archives containing all the binaries, source code and documentation from Sourceforge.
If you are interested about available versions, you can check the official Hibernate OGM download page.
How can I get in touch?
You can find us through the following channels:
-
Stack Overflow: we monitor the tag hibernate-ogm
-
Zulip: Hibernate OGM Zulip stream