zhfeng commented on PR #5147: URL: https://github.com/apache/camel-quarkus/pull/5147#issuecomment-1664887024
@jamesnetherton I rasie a PR on upstream camel to do some refactor on `JpaComponent` and it could be helpful for the graal substition. I think we can only add some substitions like ```java @TargetClass(JpaEndpoint.class) final class JpaEndpointSubstitution { @Alias private TransactionStrategy transactionStrategy; @Substitute protected EntityManagerFactory createEntityManagerFactory() { throw new UnsupportedOperationException("createEntityManagerFactory is not supported"); } @Substitute public TransactionStrategy getTransactionStrategy() { return transactionStrategy; } } @TargetClass(JpaComponent.class) final class JpaComponentSubstitution { @Substitute private void createTransactionStrategy() { } } @TargetClass(DefaultTransactionStrategy.class) @Delete final class DefaultTransactionStrategySubstitution { } ``` -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org