Meu projeto não está iniciando.
Trace: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consultaController' defined in file [C:\Users\Samsung\IdeaProjects\gerenciamento-de-clinicas\target\classes\med\voll\api\controller\ConsultaController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'consultaService': Unsatisfied dependency expressed through field 'medicoRepository': Error creating bean with name 'medicoRepository' defined in med.voll.api.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long); Reason: Validation failed for query for method public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consultaService': Unsatisfied dependency expressed through field 'medicoRepository': Error creating bean with name 'medicoRepository' defined in med.voll.api.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long); Reason: Validation failed for query for method public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'medicoRepository' defined in med.voll.api.repository.MedicoRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long); Reason: Validation failed for query for method public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long)
Caused by: org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long); Reason: Validation failed for query for method public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long)
Caused by: java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.lang.Boolean med.voll.api.repository.MedicoRepository.findAtivoById(java.lang.Long)
Caused by: java.lang.IllegalArgumentException: org.hibernate.query.sqm.UnknownEntityException: Could not resolve root entity 'Medico'
Caused by: org.hibernate.query.sqm.UnknownEntityException: Could not resolve root entity 'Medico'
Projeto: https://github.com/Gustavo-AOliveira/gerenciamento-de-clinicas