jamesnetherton opened a new pull request, #9508: URL: https://github.com/apache/camel-quarkus/pull/9508
camel-jpa is compiled against Jakarta Persistence 3.2. Some `EntityManagerFactory` and `EntityManager` method descriptors it links to no longer exist in Jakarta Persistence 4, which breaks the native build: ``` Discovered unresolved method during parsing: jakarta.persistence.EntityManagerFactory.createEntityManager() ``` This adds a build-time bytecode transform to `JpaProcessor` that rewrites those method calls in camel-jpa: * `EntityManagerFactory.createEntityManager()` becomes `createEntityManager(new EntityManager.CreationOption[0])` * `EntityManager.createQuery(String)`, `createNamedQuery(String)` and `createNativeQuery(String)` link to the variants returning `StatementOrTypedQuery` * `EntityManager.createNativeQuery(String, Class)` links to the variant returning `TypedQuery` The transform only matches the old Jakarta Persistence 3.2 descriptors, so it does nothing once camel-jpa is compiled against Jakarta Persistence 4. It can be removed when that happens (CAMEL-25282). The jpa integration tests are re-enabled and pass in JVM and native mode. Relates to #9357. The issue stays open until camel-jpa is compiled against Jakarta Persistence 4 and the example projects are re-enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
