We could expand the type information that we expose via BeanDefinition.setTargetType(…) by inspecting domain and identifier type from the RepositoryMetadata. This is in response to setting that type blessed by the fix for spring-projects/spring-framework#32489.