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.LocalDateTimeandjava.time.LocalTimeare natively supported as field types -
It is possible to configure the MongoDB
ReadConcernstrategy.
More details available in the release notes.
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:
-
day, as a
java.time.LocalDatetype -
moment, as a
java.time.LocalDateTimetype -
time, as a
java.time.LocalTimetype
Where can I get Hibernate OGM?
You can include the dialect of your choice in your project using the following Maven coordinates:
-
-
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:
-
Stack Overflow: we monitor the tag hibernate-ogm
-
Zulip: Hibernate OGM Zulip stream