Hi guys,
Is there a way to use JodaTime with Hibernate-OGM-MongoDB?
The code bellow :
Code:
private DateTime date;
@Column( name = "date" )
@Type( type = "org.joda.time.contrib.hibernate.PersistentDateTime" )
public DateTime getDate() {
return date;
}
Raised this exception :
Code:
Caused by: org.hibernate.HibernateException: OGM000059: Unable to find a GridType for org.hibernate.type.CustomType
at org.hibernate.ogm.type.impl.TypeTranslatorImpl.getType(TypeTranslatorImpl.java:140)
at org.hibernate.ogm.persister.impl.OgmEntityPersister.<init>(OgmEntityPersister.java:329)
... 40 more
Is there a way to add or define a new
Code:
GridType
to support Joda-Time or should I use the standard
Code:
java.util.Date
?