spring-in-action-5-samples icon indicating copy to clipboard operation
spring-in-action-5-samples copied to clipboard

Chapter 3 JPA not working

Open gangov opened this issue 5 years ago • 4 comments

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

gangov avatar Feb 17 '20 19:02 gangov

I have the same issue

HangYinbest123 avatar Feb 28 '20 19:02 HangYinbest123

Remove the file schema.sql from your project

mananmehta11 avatar Apr 07 '20 06:04 mananmehta11

when using jpa schema.sql not required

mananmehta11 avatar Apr 07 '20 06:04 mananmehta11

https://github.com/habuma/spring-in-action-5-samples/issues/56#issue-537920687

mananmehta11 avatar Apr 07 '20 06:04 mananmehta11