Pessoal, tudo bem? Estou enfrentando problemas com a classe agendamentoDeConsultas, irei deixar o erro aqui embaixo na descrição e irei deixar tbm o link do meu GitHub para voces poderem observar o meu projeto.
Link: https://github.com/YanVelasco/YanVelasco-med.voll-api
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consultaController': Unsatisfied dependency expressed through field 'agendaDeConsultas': Error creating bean with name 'agendaDeConsultas': Unsatisfied dependency expressed through field 'medicoRepository': Error creating bean with name 'medicoRepository' defined in br.com.yanvelasco.api.domain.medico.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime); Reason: Validation failed for query for method public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agendaDeConsultas': Unsatisfied dependency expressed through field 'medicoRepository': Error creating bean with name 'medicoRepository' defined in br.com.yanvelasco.api.domain.medico.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime); Reason: Validation failed for query for method public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'medicoRepository' defined in br.com.yanvelasco.api.domain.medico.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime); Reason: Validation failed for query for method public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime)
Caused by: org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime); Reason: Validation failed for query for method public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime)
Caused by: java.lang.IllegalArgumentException: Validation failed for query for method public abstract br.com.yanvelasco.api.domain.medico.entity.Medico br.com.yanvelasco.api.domain.medico.repository.MedicoRepository.escolherMedicoPorEspecialidade(br.com.yanvelasco.api.domain.medico.entity.Especialidade,java.time.LocalDateTime)
Caused by: org.hibernate.query.sqm.UnknownEntityException: Could not resolve root entity 'Medico'