Wpis z mikrobloga

co robię źlę: Błąd pojawia się przy dodaniu adnotacji @Entity nad nazwa mojej klasy. Program jest typowo szkoleniowy POJO:

Błąd:

017-11-20 22:49:08.507 WARN 5994 --- [ main] 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 org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: guru.springframework.spring5webapp.Author.books[java.awt.print.Book]

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-11-20 22:49:08.528 ERROR 5994 --- [ main] o.s.boot.SpringApplication : Application startup failed

code:
https://paste.ofcode.org/sTy8VEwupQWZHht2TiMuqR
#java #programowanie
  • 10