spring-projects / spring-data-jpa

Simplifies the development of creating a JPA-based data access layer.
https://spring.io/projects/spring-data-jpa/
Apache License 2.0
2.93k stars 1.39k forks source link

Spring Boot 3.2.3 + Native Image Compile broken with JPA/Hibernate #3380

Closed goafabric closed 4 months ago

goafabric commented 4 months ago

Compiling Native Images with Spring Boot 3.2.3 + Spring Data JPA, is unfortunately DOA.

gradle(w) nativeCompile results ins:

Error: Could not find target method: public static org.hibernate.bytecode.spi.BytecodeProvider org.springframework.orm.jpa.vendor.Target_BytecodeProviderInitiator.buildBytecodeProvider(java.lang.String)

Please See the simple Demo app attached, generated from Start.Spring.IO

I already tried to set Reflection Hints for this, but to no avail.

demo.zip

christophstrobl commented 4 months ago

Please see: spring-projects/spring-framework#32311 for details.