[ 
https://issues.apache.org/activemq/browse/CAMEL-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45831#action_45831
 ] 

Claus Ibsen commented on CAMEL-922:
-----------------------------------

+1

maybe set the version of the dependency as a property in the uber pom.xml. Its 
a good overview of all the deps we commonly use and easy to upgrade to a newer 
version.

> Remove deps on persistence-api jar, non compliant with the spec
> ---------------------------------------------------------------
>
>                 Key: CAMEL-922
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-922
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa
>    Affects Versions: 1.4.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.5.0
>
>
> I mentioned a while ago a warning I couldn't explain in eclipse related to 
> the use of @UniqueConstraint in camel-jpa.
> It turned out to be due to the fact that camel-jpa has a dependency on 
> persistence api, but used for testing openjpa that has a dependency on 
> geronimo-jpa_3.0_spec.  So camel-jpa pulls in two different implementation of 
> the same spec.  So far so good.  It also turns out that the definition of the 
> @UniqueConstraint annotation is different in the two jars, the 
> persistence-api (and the camel-jpa code as implemented) being non spec 
> compliant.  I found other inconsistencies in the persistence-api impl and it 
> seems to be based on an older version of the spec.
> (More precisely persistence api annotates the @interface UniqueConstraint 
> with @Target({TYPE}) whereas the spec and the geronimo impl use: @Target({}))
> My recommendation is to replace the dependency on persistence-api with the 
> geronimo version.  I will commit a change for this in the next hour or so, 
> but leave this issue open.  If anybody has any objections please shout and I 
> will revert the change.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to