JPA 2.0 API Maven工件 [英] JPA 2.0 API maven artifact
问题描述
我正在使用JPA 2.0,而我的持久性提供程序是Hibernate;但是,我只想包含来自javax的标准API,但是在中央,没有2.0构件.我目前正在使用Hibernate JPA 2.0工件,但我想使用更标准的东西.
I am using JPA 2.0 and my persistence provider is Hibernate; however, I'd like to just include a standard API from javax, but in central, there is no 2.0 artifact. I am currently using the Hibernate JPA 2.0 artifact, but I'd like to use something more standard.
这可能吗?
谢谢
沃尔特
推荐答案
我目前正在使用Hibernate JPA 2.0工件,但是我想使用更标准的东西
I am currently using the Hibernate JPA 2.0 artifact, but I'd like to use something more standard
Sun/Oracle仍然没有javax.persistence:persistence-api:jar:2.0
工件.如果您想从Sun/Oracle获得一些东西,请使用完整的javax:javaee-api:jar:6.0
工件...或者只是坚持使用Hibernate,EclipseLink,OpenJPA等提供的接口.
There is still no javax.persistence:persistence-api:jar:2.0
artifact from Sun/Oracle. Either use the full javax:javaee-api:jar:6.0
artifact if you want something from Sun/Oracle... or just stick with the interfaces provided by Hibernate, EclipseLink, OpenJPA, etc.
这篇关于JPA 2.0 API Maven工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!