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:
Asked
Active
Viewed 1,477 times
0
-
can you please provide full stacktrace? – Mazhar Ibna Zahur Aug 30 '22 at 06:47
-
Can you add the `entity` class code? Based on the error it is expecting an `@Id` member in the entity class – Prog_G Aug 30 '22 at 07:10
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 30 '22 at 11:59
1 Answers
-1
I had the same problem. In my case,its because of wrong @Id annotation import. It should be :- import javax.persistence.Id;

Vaibhav Ambule
- 16
- 5