org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pedidoRepository' defined in br.com.alura.mvc.mudi.repository.PedidoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Cannot resolve reference to bean 'jpaMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on br.com.alura.mvc.mudi.model.Pedido.user references an unknown entity: org.springframework.security.core.userdetails.User
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @OneToOne or @ManyToOne on br.com.alura.mvc.mudi.model.Pedido.user references an unknown entity: org.springframework.security.core.userdetails.User
Caused by: org.hibernate.AnnotationException: @OneToOne or @ManyToOne on br.com.alura.mvc.mudi.model.Pedido.user references an unknown entity: org.springframework.security.core.userdetails.User