Hibernate OGM 5.4.0.CR1 has been released!

Here’s a list of the main changes:

  • We support Infinispan remote transactions over HotRod client

  • Java types java.time.LocalDate, java.time.LocalDateTime and java.time.LocalTime are natively supported as field types

  • It is possible to configure the MongoDB ReadConcern strategy.

More details available in the release notes.

Components upgrade

  • Hibernate ORM 5.3.4.Final

  • Hibernate Search 5.10.4.Final

  • Infinispan 9.3.3.Final

Use java.type.LocalDate

Now you can define an entity having java.time fields. Such as:

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Entity
public class LocalDateEntity {

        @Id
        private Integer id;

        private LocalDate day; (1)
        private LocalDateTime moment; (2)
        private LocalTime time; (3)
}

Hibernate OGM will handle the fields:

  1. day, as a java.time.LocalDate type

  2. moment, as a java.time.LocalDateTime type

  3. time, as a java.time.LocalTime type

Where can I get Hibernate OGM?

You can include the dialect of your choice in your project using the following Maven coordinates:

  • Infinispan

    • Remote: org.hibernate.ogm:hibernate-ogm-infinispan-remote:5.4.0.CR1

    • Embedded: org.hibernate.ogm:hibernate-ogm-infinispan-embedded:5.4.0.CR1

  • MongoDB: org.hibernate.ogm:hibernate-ogm-mongodb:5.4.0.CR1

  • Neo4j: org.hibernate.ogm:hibernate-ogm-neo4j:5.4.0.CR1

    • Infinispan Remote: org.hibernate.ogm:hibernate-ogm-featurepack-infinispan-remote:5.4.0.CR1

    • Infinispan Embedded: org.hibernate.ogm:hibernate-ogm-featurepack-infinispan-embedded:5.4.0.CR1

    • MongoDB: org.hibernate.ogm:hibernate-ogm-featurepack-mongodb:5.4.0.CR1

    • Neo4j: org.hibernate.ogm:hibernate-ogm-featurepack-neo4j:5.4.0.CR1

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:

Contributions

Some of the new features have been contributed by Aleksandr Mylnikov. Thanks a lot Aleksandr!

Looking forward to hearing your feedback!


Back to top