Hibernate OGM 4 beta 3 is out

Posted by    |       Hibernate OGM

Hibernate OGM is not maintained anymore

We have been very quiet on the announcement front for Hibernate OGM, but don't be fooled. Davide and Gunnar have been very busy bees and did bring significant foundation work for features that you will see in the next few months.

Improved query support around projection and operators

Based on the foundation of our JP-QL parser, we have added support for more JP-QL queries:

Supported operators

  • operators =, <, <=, >, =, IN, LIKE, BETWEEN
  • Supported boolean combinations: AND, OR, NOT
  • Support for simple property projections and embedded objects

In practice, that means that you can write the following JP-QL query and have it run for example on Infinispan.

select u.firstname, u.lastname from User u where (u.age BETWEEN 12 AND 18) OR u.supervision = 'free'

As a reminder, we now support for following query features:

  • operators =, <, <=, >, =>, IN, LIKE, BETWEEN
  • boolean combinations: AND, OR, NOT
  • simple proprerty projections
  • embedded objects
  • parametric queries

JP-QL query support for MongoDB

We now convert JP-QL queries into MongoQL queries and run them to retrieve entities. This is only the beginning and our support is comparable to the Lucene support.

This is a significant step forward for us as we proved our tool chain can handle what we are planning.

Discriminator based hierarchy

OGM now supports the single table per class strategy for the mapping of hierachies. In this case a column will be added to differentiate between entity types in a hierarchy. Previously, you had to store subclasses in different tables.

JBoss AS 7 integration module

JBoss AS comes with a module system offering better packages and isolated libraries. We have added Hibernate OGM as a module to simplify JBoss AS users.

Support for Wildfly is coming soon.

Support for Hibernate Search mass indexing

When using Hibernate Search in conjunction with Hibernate OGM, you could not index entities using the MassIndexer.

This is now fixed and we are back to an efficient indexing.

Next

Expect more regular releases from us from now on. We forgot our release early, release often mantra but that has to stop!

As an example, expect support for Neo4J as well as the ability to pass native queries (for example to MongoDB) and retrieve managed objects.

How to try it

You can take a look at the documentation or check how you can download Hibernate OGM 4.0.0.Beta3.

Many thanks to all the contributors that made this release possible whether it be via pull requests, bug reports or feedback on the forum.


Back to top