[
https://issues.apache.org/jira/browse/KARAF-5850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561428#comment-16561428
]
ASF GitHub Bot commented on KARAF-5850:
---------------------------------------
jbonofre closed pull request #580: [KARAF-5850] JPA engine features provide the
capability
URL: https://github.com/apache/karaf/pull/580
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/assemblies/features/enterprise/src/main/feature/feature.xml
b/assemblies/features/enterprise/src/main/feature/feature.xml
index 050142f780..66fe319562 100644
--- a/assemblies/features/enterprise/src/main/feature/feature.xml
+++ b/assemblies/features/enterprise/src/main/feature/feature.xml
@@ -178,7 +178,7 @@
<bundle
dependency="true">mvn:org.apache.xbean/xbean-asm5-shaded/4.3</bundle>
<bundle>mvn:org.apache.openjpa/openjpa/2.4.2</bundle>
<capability>
-
osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider
+
osgi.service;objectClass=javax.persistence.spi.PersistenceProvider;effective:=active;javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl
</capability>
</feature>
@@ -187,7 +187,7 @@
<feature version="${hibernate.version}">hibernate-orm</feature>
<bundle dependency="true">mvn:net.bytebuddy/byte-buddy/1.6.6</bundle>
<capability>
-
osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider
+
osgi.service;objectClass=javax.persistence.spi.PersistenceProvider;effective:=active;javax.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider
</capability>
</feature>
@@ -203,7 +203,7 @@
<bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/${eclipselink.version}</bundle>
<bundle>mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/${aries.jpa.version}</bundle>
<capability>
-
osgi.service;effective:=active;objectClass=javax.persistence.spi.PersistenceProvider
+
osgi.service;objectClass=javax.persistence.spi.PersistenceProvider;effective:=active;javax.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider
</capability>
</feature>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> JPA features should provide the engine capability
> -------------------------------------------------
>
> Key: KARAF-5850
> URL: https://issues.apache.org/jira/browse/KARAF-5850
> Project: Karaf
> Issue Type: Bug
> Components: karaf-feature
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 4.2.1
>
>
> With latest changes on JPA feature, end user has to provide a
> {{<capability/>}} with the JPA engine provider (see the JPA example). IMHO,
> that's not good and a workaround as the JPA engine feature itself (openjpa,
> hibernate, eclipselink) should provide this capability.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)