Skip to content

Add Hibernate 6 JPA engine feature#2559

Merged
jbonofre merged 1 commit intoapache:karaf-4.4.xfrom
jbonofre:add-hibernate6-feature
Apr 22, 2026
Merged

Add Hibernate 6 JPA engine feature#2559
jbonofre merged 1 commit intoapache:karaf-4.4.xfrom
jbonofre:add-hibernate6-feature

Conversation

@jbonofre
Copy link
Copy Markdown
Member

Add hibernate6 and hibernate6-envers features alongside existing Hibernate 5 features.

Key challenges addressed:

  • hibernate-core 6.x has no hibernate-osgi module; hibernate-core must be wrapped using pax-url-wrap with overwrite=MERGE so BND re-processes the bundle and our Import-Package instruction (making vendor-specific, CDI, validation, and JAXB imports optional) actually takes effect
  • jakarta.transaction-api 2.0.1 has mandatory CDI imports; wrapped to make jakarta.enterprise.* and jakarta.interceptor optional
  • hibernate-commons-annotations 7.0.3.Final ships with a corrupt Export-Package manifest value; wrapped with overwrite=FULL to generate a clean OSGi bundle

Bundles added: hibernate-core 6.6.18.Final, hibernate-envers 6.6.18.Final, hibernate-commons-annotations 7.0.3.Final, jakarta.transaction-api 2.0.1, jakarta.persistence-api 3.1.0, byte-buddy 1.17.5, jandex 3.2.7, antlr4-runtime 4.13.2, stax2-api 4.2.2, jackson-dataformat-xml.

Add hibernate6 and hibernate6-envers features alongside existing Hibernate 5 features.

Key challenges addressed:
- hibernate-core 6.x has no hibernate-osgi module; hibernate-core must be
  wrapped using pax-url-wrap with overwrite=MERGE so BND re-processes the
  bundle and our Import-Package instruction (making vendor-specific, CDI,
  validation, and JAXB imports optional) actually takes effect
- jakarta.transaction-api 2.0.1 has mandatory CDI imports; wrapped to make
  jakarta.enterprise.* and jakarta.interceptor optional
- hibernate-commons-annotations 7.0.3.Final ships with a corrupt
  Export-Package manifest value; wrapped with overwrite=FULL to generate
  a clean OSGi bundle

Bundles added: hibernate-core 6.6.18.Final, hibernate-envers 6.6.18.Final,
hibernate-commons-annotations 7.0.3.Final, jakarta.transaction-api 2.0.1,
jakarta.persistence-api 3.1.0, byte-buddy 1.17.5, jandex 3.2.7,
antlr4-runtime 4.13.2, stax2-api 4.2.2, jackson-dataformat-xml.
@jbonofre jbonofre linked an issue Apr 22, 2026 that may be closed by this pull request
@jbonofre jbonofre merged commit 7bb7c02 into apache:karaf-4.4.x Apr 22, 2026
11 of 12 checks passed
@jbonofre jbonofre deleted the add-hibernate6-feature branch April 22, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How far along is integration of Hibernate 6 and 7 in Karaf?

1 participant