Hola compañer@s. Tengo los siguientes errores que se muestran en el stack trace y no he logrado darle solución. Abajo les dejo lista de los errores. Agradezco su valiosa ayuda.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'citaController': Unsatisfied dependency expressed through field 'adcService': Error creating bean with name 'agendaDeCitaService': Unsatisfied dependency expressed through field 'citaRepository': Error creating bean with name 'citaRepository' defined in med.voll.api.domain.citasmedica.CitaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween (java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween (java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agendaDeCitaService': Unsatisfied dependency expressed through field 'citaRepository': Error creating bean with name 'citaRepository' defined in med.voll.api.domain.citasmedica.CitaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository. existsByPacienteAndDataBetween(java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.citasmedica. CitaRepository.existsByPacienteAndDataBetween(java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'citaRepository' defined in med.voll.api.domain.citasmedica.CitaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween (java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween (java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]
Caused by: org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween(java.lang.Long,java.time. LocalDateTime,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween(java.lang.Long,java.time.LocalDateTime, java.time.LocalDateTime); Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]
Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract java.lang.Boolean med.voll.api. domain.citasmedica.CitaRepository.existsByPacienteAndDataBetween(java.lang.Long,java.time.LocalDateTime,java.time.LocalDateTime); Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]
Caused by: java.lang.IllegalArgumentException: Can't compare test expression of type [Paciente] with element of type [basicType@5(java.lang.Long,-5)]