Hello,
up until version 3.3.9 the RepositoryResourceMappings class was using the Repositories object to populate the cache needed for the ResourceMetadataHandlerMethodArgumentResolver as you can see here:
https://github.com/spring-projects/spring-data-rest/blob/3.3.9.RELEASE/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java#L69
Then this method was changed to use the PersistentEntities as youc an see here:
https://github.com/spring-projects/spring-data-rest/blob/main/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java#L69
The PersistentEntities object is constructed by trying to locate all the javax.persistence.metamodel.Metamodel and thus completely ignores the alternativeDomainTypes a RepositoryMetadata may hold.
Hello,
up until version 3.3.9 the
RepositoryResourceMappingsclass was using theRepositoriesobject to populate the cache needed for theResourceMetadataHandlerMethodArgumentResolveras you can see here:https://github.com/spring-projects/spring-data-rest/blob/3.3.9.RELEASE/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java#L69
Then this method was changed to use the
PersistentEntitiesas youc an see here:https://github.com/spring-projects/spring-data-rest/blob/main/spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/RepositoryResourceMappings.java#L69
The
PersistentEntitiesobject is constructed by trying to locate all thejavax.persistence.metamodel.Metamodeland thus completely ignores thealternativeDomainTypesaRepositoryMetadatamay hold.