Hi
I need some help with jpa configuration in spring.
I use spring, spring data and hibernate in the application. I have some problem with the configuration. It can create the tables in the database so this part works. But when I try to save a
test object, I get an exception.
The spring uses this application-context.xml:
This is the exception what I get:
Error creating bean with name 'entityManagerFactory' defined in class path resource [application-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No PersistenceProvider specified in EntityManagerFactory configuration, and chosen PersistenceUnitInfo does not specify a provider class name either
I understand that the PersistenceProvider is missing but I don't know how to solve it.
I tried to find examples and follow them, but I couldn't solve it.
What is my mistake? How can I fix it?
Thank you