mihalcea_vlad wrote:
You didn't mention the problem. Do you get an exception?
the problem is the class EntityManagerFactoryBuilderImpl in hibernate 5.1.0 no longer have the method buildHibernateConfiguration(serviceRegistry), and i dont know how to migrate this code:
Code:
@Override
public Configuration buildHibernateConfiguration(ServiceRegistry serviceRegistry) {
Configuration buildHibernateConfiguration = super.buildHibernateConfiguration(serviceRegistry);
try {
buildHibernateConfiguration.addAttributeConverter(converterWeakReference, true);
} catch(Exception e) {
log.debug("", e);
}
return buildHibernateConfiguration;
}