ramu11 commented on PR #27314: URL: https://github.com/apache/camel/pull/27314#issuecomment-5990446118
Implemented the requested Hibernate 8 native migration and updated the component accordingly. ### Implemented * Migrated `camel-hibernate` to **native Hibernate ORM 8.0.0.Beta3** APIs. * Removed JPA, `camel-jpa`, and Spring transaction manager dependencies/usages. * Added native `SessionFactory` bootstrap and lifecycle management. * Supports reusing an existing `SessionFactory` from the Camel registry. * Added `DataSource`-based bootstrap with explicit entity class registration. * Added `schemaAction` support: `none`, `validate`, `update`, `create`. * Added pass-through `hibernateProperties`. * Added native Hibernate `SelectionQuery` and `MutationQuery` support. * Added read-only query/session support. * Added natural-id lookup. * Added Hibernate filter support. * Added tenant-aware session creation for multi-tenancy. * Added `StatelessSession` `insert` and `upsert` operations. * Added streaming selection-query results. * Added consumer support for `SKIP_LOCKED`. * Added startup validation to ensure exactly one operation is configured. * Kept queries route-configured; no message-header query override was added. * Updated component metadata, generated configuration/URI files, and component JSON. * Reworked the component documentation for the native Hibernate API. * Replaced the old JPA-oriented tests/entities with Hibernate 8 native tests. ### Intentionally deferred * `packagesToScan`: no suitable non-JPA public Hibernate 8 API was identified for the required classpath scanning behavior. * Existing transaction joining: deferred until the appropriate native Hibernate 8/Camel transaction integration is established. * Dynamic-map entities: deferred because the legacy `EntityMode.MAP` / dynamic-map API is not suitable for Hibernate 8. ### Validation * `camel-hibernate` tests: **28 tests, 0 failures, 0 errors, 0 skipped** * `BUILD SUCCESS` * Generated sources/metadata regenerated. * Branch is synchronized with the remote and working tree is clean. -- 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]
