When I try to retrieve an Entity Manager, I got this:
Caused by: org.hibernate.HibernateException: Unable to find a GridType for org.hibernate.type.SerializableType
So I looked into the org.hibernate.ogm.type.impl.TypeTranslatorImpl class and I think one line is missing:
Therefore the constant INSTANCE doesn't exist for SerializableTypeDescriptor. A possible hack could be:
typeConverter.put(new SerializableTypeDescriptor<Serializable>(Serializable.class), SerializableType.INSTANCE);
But it doesn't work because when the get() method is called on the map it won't return anything because the instance are different.
A ticket on Jira has been opened OGM-120
What can be done to fix it ?