Hello.
In Hibernate to override the TimestampType to convert all timestamps to/from UTC when they are sent to/from the database.
Previously I used the
Integrator to register the new type, but since v5.0 the method to retrieve the
Configuration disappeared.
I.e. this no longer works;
Code:
public class HibernateUtcTimestampTypeIntegrator implements Integrator {
@Override // This method no longer exist in v5.0
public void integrate(Configuration configuration, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
configuration.registerTypeOverride(new HibernateUtcTimestampType());
}
[...]
}
So my question is, where do I override types in 5.x?
Thank you.