Olá pessoal! Boa noite! Estou recomeçando o projeto voll.med, e, estou travado na parte de persistência de dados. Ao tentar salvar o primeiro registro no banco de dados na tabela de medicos, estou tomando o seguinte erro que aparece no VSCode:
"timestamp": "2024-12-23T22:47:12.224+00:00", "status": 500, "error": "Internal Server Error", "trace": "org.springframework.orm.jpa.JpaSystemException: Unable to locate constructor for embeddable 'br.com.alura.da.med.voll.clinica.api.api_restFUL .endereco.Endereco'\r\n\tat org.springframework.orm.jpa.vendor .HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java :341)\r\n\tat org.springframework.orm.jpa.vendor.HibernateJpaDialect .translateExceptionIfPossible(HibernateJpaDialect.java:241)\r\n\tat org .springframework.orm.jpa.AbstractEntityManagerFactoryBean .translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:560 )\r\n\tat org.springframework.dao.support .ChainedPersistenceExceptionTranslator.translateExceptionIfPossible (ChainedPersistenceExceptionTranslator.java:61)\r\n\tat org.springframework .dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:343 )\r\n\tat org.springframework.dao.support .PersistenceExceptionTranslationInterceptor.invoke (PersistenceExceptionTranslationInterceptor.java:160)\r\n\tat org .springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:184)\r\n\tat org.springframework.data.jpa .repository.support .CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor .invoke(CrudMethodMetadataPostProcessor.java:165)\r\n\tat org.springframework .aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation .java:184)\r\n\tat org.springframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynamicAopProxy.java:223)\r\n\tat jdk.proxy4/jdk.proxy4.$Proxy126.save (Unknown Source)\r\n\tat br.com.alura.da.med.voll.clinica.api.api_restFUL .controllers.MedicoController.cadastrarMedico(MedicoController.java:24
Grato por ajuda.