Steps to reproduce missing AOT-support:
- Take spring boot app that uses
EntityGraphJpaRepository e.g. @Repository public interface MyGraphRepository extends EntityGraphJpaRepository<MyEntity, UUID>, EntityGraphJpaSpecificationExecutor<MyEntity>{}
- Build with ahead-of-time compilation:
mvn -q -DskipTests compile spring-boot:process-aot package
- See logs: you'll get
org.springframework.data.core.PropertyReferenceException: No property 'findAll' found for type 'MyEntity'
Solution would involve:
- adapting RepositoryFactoryBean
- registering repository fragments early
- adding AOT contributions via AotRepositoryContext
Steps to reproduce missing AOT-support:
EntityGraphJpaRepositorye.g.@Repository public interface MyGraphRepository extends EntityGraphJpaRepository<MyEntity, UUID>, EntityGraphJpaSpecificationExecutor<MyEntity>{}mvn -q -DskipTests compile spring-boot:process-aot packageorg.springframework.data.core.PropertyReferenceException: No property 'findAll' found for type 'MyEntity'Solution would involve: