In this question, you can see that I have an issue that I resolved it only changing hibernate version. It seems to me that I would be able to overcome it if I can override some methods from HibernatePersistenceProvider
class. I did created my own class that extends it, but if I specify it as provider in the <provider>
tag from persistence.xml
class, I get a javax.persistence.PersistenceException: No Persistence provider for EntityManager named X
exception.
Can anyone guide me on how should I override the default hibernate provider class with my own?