Croway opened a new pull request, #28612: URL: https://github.com/apache/camel/pull/28612
`camel-hibernate` requires Hibernate ORM 8 (`8.0.0.Beta3`) and Jakarta Persistence 4.0 (`4.0.0-M7`). Spring Boot 4.1.x manages `hibernate.version=7.4.13.Final` and `jakarta-persistence.version=3.2.0`, so in a Spring Boot application `camel-hibernate-starter` resolves to versions the component is not compatible with. Compiling `camel-hibernate` against Hibernate 7.4.13.Final / JPA 3.2.0 fails on two Hibernate 8-only methods, so these fail at runtime with `NoSuchMethodError`: - `SelectionQuery.setLockTimeout(Timeout)`, used by the consumer with `skipLocked=true` - `MutationQuery.execute()`, used by producer mutation queries The Spring stack is adding Hibernate 8 support but is not there yet for Spring Boot 4.1: Spring Data JPA adapted to JPA 4.0 only in 4.2.0-M2 (spring-projects/spring-data-jpa#4197), and Spring Framework's Hibernate 8 `BeanContainer` SPI support is in 7.1 (spring-projects/spring-framework#37381). This PR adds a warning-level "Using with Spring Boot" section to the component docs (with a short warning near the Maven dependency pointing to it) explaining: - the Hibernate ORM / Jakarta Persistence version override needed (`spring-boot-starter-parent` properties, or `dependencyManagement` when importing the BOM); - that the starter must not be combined with Spring Data JPA or the Spring Boot JPA/Hibernate auto-configuration; - that the override applies to the whole application (e.g. `camel-jpa`). Related: apache/camel-spring-boot#2063 (adds the missing `CamelHibernateIT`). _Claude Code on behalf of Federico Mariani_ -- 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]
