Issue
Caused by: 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 org.hibernate.AnnotationException: No identifier specified for entity:
Solution
I had the same problem. In my case,its because of wrong @Id annotation import. It should be :- import javax.persistence.Id;
ref:-(https://stackoverflow.com/a/15323836/19262829)
Answered By - Vaibhav Ambule
Answer Checked By - Gilberto Lyons (JavaFixing Admin)