spring-in-action-5-samples
spring-in-action-5-samples copied to clipboard
Chapter 3 JPA not working
The following error occurs when downloading the JPA implementation:
2020-02-17 21:06:04.752 WARN 1810 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
I have the same issue
Remove the file schema.sql from your project
when using jpa schema.sql not required
https://github.com/habuma/spring-in-action-5-samples/issues/56#issue-537920687