- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对 Java EE 领域相当陌生,所以请原谅我的无知;我继承了一个使用 guice-persist 和 hibernate 来处理 ORM 的应用程序。
我正在尝试使用 CriteriaQuery
,但我发现我的 jaxax.persistence.EntityManager
似乎是 this接口(interface)(来自 EJB),而不是 the one I want (来自 JPA),所以我无法使用 createQuery(CriteriaQuery)
。
这是一个 Maven 项目,我不清楚这个 EJB 代码来自哪里——我从 Guice-Persist 和 Hibernate 中看到的所有内容都显示了 JPA 接口(interface),而不是 EJB 接口(interface),所以我不知道从哪里来这个EJB包来自。
这里有什么想法吗?我是否有一个杂散的 Maven 依赖项将 EJB 引入到我的项目中,或者听起来我误解了持久层并且实际上在我的应用程序中需要 EJB?
如果您让我知道您需要什么,我将很乐意发布更多信息。
编辑:
经过仔细检查,我开始怀疑我的“远程”项目有一个格式错误的 pom.xml。下面的依赖树。
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ texasU ---
[INFO] texasU:texasU:war:1.1.2-SNAPSHOT
[INFO] +- com.google.gwt:gwt-user:jar:2.5.0-rc1:provided
[INFO] | +- (javax.validation:validation-api:jar:1.0.0.GA:compile - scope updat
ed from provided; omitted for duplicate)
[INFO] | +- javax.validation:validation-api:jar:sources:1.0.0.GA:provided
[INFO] | \- org.json:json:jar:20090211:provided
[INFO] +- com.google.gwt:gwt-servlet:jar:2.5.0-rc1:runtime
[INFO] +- com.arcbees.core:arcbees-core:jar:1.0-SNAPSHOT:provided
[INFO] | +- (com.google.gwt:gwt-servlet:jar:2.4.0:provided - omitted for confli
ct with 2.5.0-rc1)
[INFO] | +- com.google.appengine:appengine-api-1.0-sdk:jar:1.6.1:provided
[INFO] | +- (com.gwtplatform:gwtp-dispatch-server-guice:jar:0.8-SNAPSHOT:provid
ed - omitted for duplicate)
[INFO] | +- (com.gwtplatform:gwtp-dispatch-shared:jar:0.8-SNAPSHOT:compile - sc
ope updated from provided; omitted for duplicate)
[INFO] | +- (com.google.inject:guice:jar:3.0:compile - scope updated from provi
ded; omitted for duplicate)
[INFO] | +- (com.google.inject.extensions:guice-servlet:jar:3.0:provided - omit
ted for duplicate)
[INFO] | +- (com.google.inject.extensions:guice-assistedinject:jar:3.0:provided
- omitted for duplicate)
[INFO] | +- javax.persistence:persistence-api:jar:1.0:provided
[INFO] | +- org.restlet.gae:org.restlet:jar:2.1-RC2:provided
[INFO] | \- org.restlet.gae:org.restlet.ext.servlet:jar:2.1-RC2:provided
[INFO] | \- (org.restlet.gae:org.restlet:jar:2.1-RC2:provided - omitted for
duplicate)
[INFO] +- com.gwtplatform:gwtp-mvp-client:jar:0.8-SNAPSHOT:provided
[INFO] | \- com.gwtplatform:gwtp-clients-common:jar:0.8-SNAPSHOT:provided
[INFO] | \- (com.google.inject:guice:jar:3.0:provided - omitted for duplicat
e)
[INFO] +- com.gwtplatform:gwtp-dispatch-client:jar:0.8-SNAPSHOT:provided
[INFO] | +- (com.gwtplatform:gwtp-clients-common:jar:0.8-SNAPSHOT:provided - om
itted for duplicate)
[INFO] | +- (com.gwtplatform:gwtp-dispatch-shared:jar:0.8-SNAPSHOT:provided - o
mitted for duplicate)
[INFO] | \- (com.google.inject:guice:jar:3.0:provided - omitted for duplicate)
[INFO] +- com.gwtplatform:gwtp-dispatch-server-guice:jar:0.8-SNAPSHOT:compile
[INFO] | +- com.gwtplatform:gwtp-dispatch-server:jar:0.8-SNAPSHOT:compile
[INFO] | | \- (com.gwtplatform:gwtp-dispatch-shared:jar:0.8-SNAPSHOT:compile -
omitted for duplicate)
[INFO] | +- (com.gwtplatform:gwtp-dispatch-shared:jar:0.8-SNAPSHOT:compile - om
itted for duplicate)
[INFO] | \- (com.google.inject:guice:jar:3.0:compile - omitted for duplicate)
[INFO] +- com.gwtplatform:gwtp-dispatch-shared:jar:0.8-SNAPSHOT:compile
[INFO] +- com.gwtplatform:gwtp-processors:jar:0.8-SNAPSHOT:provided
[INFO] +- com.google.inject:guice:jar:3.0:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- com.google.inject.extensions:guice-servlet:jar:3.0:compile
[INFO] | \- (com.google.inject:guice:jar:3.0:compile - omitted for duplicate)
[INFO] +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
[INFO] | \- (com.google.inject:guice:jar:3.0:compile - omitted for duplicate)
[INFO] +- com.google.gwt.inject:gin:jar:1.5.0:provided
[INFO] | +- (com.google.inject:guice:jar:3.0-rc2:provided - omitted for conflic
t with 3.0)
[INFO] | +- (com.google.inject.extensions:guice-assistedinject:jar:3.0-rc2:prov
ided - omitted for conflict with 3.0)
[INFO] | \- (com.google.gwt:gwt-servlet:jar:2.2.0:provided - omitted for confli
ct with 2.5.0-rc1)
[INFO] +- mysql:mysql-connector-java:jar:5.1.21:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.1.4.Final:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar
:1.0.0.Final:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Fin
al:compile
[INFO] | +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:
compile
[INFO] | \- (org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - omitted
for conflict with 3.1.0.GA)
[INFO] +- org.hibernate:hibernate-entitymanager:jar:4.1.4.Final:compile
[INFO] | +- (org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile - omitted for
duplicate)
[INFO] | +- (org.hibernate:hibernate-core:jar:4.1.4.Final:compile - omitted for
duplicate)
[INFO] | +- (org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:ja
r:1.0.0.Final:compile - omitted for duplicate)
[INFO] | +- (dom4j:dom4j:jar:1.6.1:compile - omitted for duplicate)
[INFO] | +- (org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Fi
nal:compile - omitted for duplicate)
[INFO] | +- (org.javassist:javassist:jar:3.15.0-GA:compile - omitted for duplic
ate)
[INFO] | \- (org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final
:compile - omitted for duplicate)
[INFO] +- org.hibernate:hibernate-validator:jar:4.3.0.Final:compile
[INFO] | +- javax.validation:validation-api:jar:1.0.0.GA:compile
[INFO] | \- (org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - omitted fo
r conflict with 3.1.0.GA)
[INFO] +- com.google.inject.extensions:guice-persist:jar:3.0:compile
[INFO] | \- (com.google.inject:guice:jar:3.0:compile - omitted for duplicate)
[INFO] +- org.hibernate:hibernate-c3p0:jar:4.1.4.Final:compile
[INFO] | +- (org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile - omitted for
duplicate)
[INFO] | +- (org.hibernate:hibernate-core:jar:4.1.4.Final:compile - omitted for
duplicate)
[INFO] | \- c3p0:c3p0:jar:0.9.1:compile
[INFO] +- com.googlecode.gwtquery:gwtquery:jar:1.1.0:provided
[INFO] +- com.google.guava:guava:jar:13.0-rc2:compile
[INFO] +- com.google.guava:guava-gwt:jar:13.0-rc2:provided
[INFO] | \- (com.google.guava:guava:jar:13.0-rc2:provided - omitted for duplica
te)
[INFO] +- org.mindrot:jbcrypt:jar:0.3m:compile
[INFO] +- javax.mail:mail:jar:1.4.5:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- edu.utsouthwestern.qbri.remoter:service-bundle:jar:1.0-SNAPSHOT:compil
e
[INFO] | +- org.nuiton.thirdparty:Rserve:jar:0.6-1:compile
[INFO] | +- org.nuiton.thirdparty:REngine:jar:0.6-1:compile
[INFO] | +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.5.1:compile
[INFO] | | +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] | | +- asm:asm:jar:3.3:compile
[INFO] | | +- org.apache.cxf:cxf-api:jar:2.5.1:compile
[INFO] | | | +- org.apache.cxf:cxf-common-utilities:jar:2.5.1:compile
[INFO] | | | | +- (org.apache.ws.xmlschema:xmlschema-core:jar:2.0.1:compile
- omitted for duplicate)
[INFO] | | | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.1.1:runtime
[INFO] | | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.1:runtime
[INFO] | | | +- org.apache.ws.xmlschema:xmlschema-core:jar:2.0.1:compile
[INFO] | | | +- org.apache.neethi:neethi:jar:3.0.1:compile
[INFO] | | | \- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] | | +- org.apache.cxf:cxf-rt-core:jar:2.5.1:compile
[INFO] | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | | +- com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
[INFO] | | | +- (org.apache.ws.xmlschema:xmlschema-core:jar:2.0.1:compile - o
mitted for duplicate)
[INFO] | | | \- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.
1:compile
[INFO] | | +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.5.1:compile
[INFO] | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | | +- org.apache.cxf:cxf-tools-common:jar:2.5.1:compile
[INFO] | | | | +- (wsdl4j:wsdl4j:jar:1.6.2:compile - omitted for duplicate)
[INFO] | | | | +- (com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile - omitted f
or duplicate)
[INFO] | | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for du
plicate)
[INFO] | | | | +- (org.apache.cxf:cxf-common-utilities:jar:2.5.1:compile - o
mitted for duplicate)
[INFO] | | | | \- (org.apache.cxf:cxf-rt-core:jar:2.5.1:compile - omitted fo
r duplicate)
[INFO] | | | \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.5.1:compile
[INFO] | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for du
plicate)
[INFO] | | | +- (org.apache.cxf:cxf-rt-core:jar:2.5.1:compile - omitted fo
r duplicate)
[INFO] | | | \- (com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile - omitted f
or duplicate)
[INFO] | | +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.5.1:compile
[INFO] | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | | \- (org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.5.1:compile - o
mitted for duplicate)
[INFO] | | +- org.apache.cxf:cxf-rt-frontend-simple:jar:2.5.1:compile
[INFO] | | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | | +- (org.apache.cxf:cxf-rt-core:jar:2.5.1:compile - omitted for d
uplicate)
[INFO] | | | \- (org.apache.cxf:cxf-rt-bindings-soap:jar:2.5.1:compile - omit
ted for duplicate)
[INFO] | | \- org.apache.cxf:cxf-rt-ws-addr:jar:2.5.1:compile
[INFO] | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | +- (org.apache.cxf:cxf-common-utilities:jar:2.5.1:compile - omit
ted for duplicate)
[INFO] | | \- (org.apache.cxf:cxf-rt-bindings-soap:jar:2.5.1:compile - omit
ted for duplicate)
[INFO] | \- org.apache.cxf:cxf-rt-transports-http:jar:2.5.1:compile
[INFO] | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for duplicat
e)
[INFO] | +- org.apache.cxf:cxf-rt-transports-common:jar:2.5.1:compile
[INFO] | | +- (org.apache.cxf:cxf-api:jar:2.5.1:compile - omitted for dupli
cate)
[INFO] | | \- (org.apache.cxf:cxf-rt-core:jar:2.5.1:compile - omitted for d
uplicate)
[INFO] | +- (org.apache.cxf:cxf-rt-core:jar:2.5.1:compile - omitted for dupl
icate)
[INFO] | \- org.springframework:spring-web:jar:3.0.6.RELEASE:compile
[INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplic
ate)
[INFO] | +- org.springframework:spring-beans:jar:3.0.6.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:3.0.6.RELEASE:compile
- omitted for duplicate)
[INFO] | +- org.springframework:spring-context:jar:3.0.6.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:3.0.6.RELEASE:compile
[INFO] | | | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for
duplicate)
[INFO] | | | +- (org.springframework:spring-asm:jar:3.0.6.RELEASE:compi
le - omitted for duplicate)
[INFO] | | | +- (org.springframework:spring-beans:jar:3.0.6.RELEASE:com
pile - omitted for duplicate)
[INFO] | | | \- (org.springframework:spring-core:jar:3.0.6.RELEASE:comp
ile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:3.0.6.RELEASE:compil
e - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:3.0.6.RELEASE:compile
- omitted for duplicate)
[INFO] | | +- org.springframework:spring-expression:jar:3.0.6.RELEASE:co
mpile
[INFO] | | | \- (org.springframework:spring-core:jar:3.0.6.RELEASE:comp
ile - omitted for duplicate)
[INFO] | | \- org.springframework:spring-asm:jar:3.0.6.RELEASE:compile
[INFO] | \- org.springframework:spring-core:jar:3.0.6.RELEASE:compile
[INFO] | +- (org.springframework:spring-asm:jar:3.0.6.RELEASE:compile
- omitted for duplicate)
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.apache.commons:commons-io:jar:1.3.2:compile
[INFO] +- com.googlecode.gwt.charts:gwt-charts:jar:0.9.5:compile
[INFO] +- junit:junit:jar:4.10:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] +- org.mockito:mockito-all:jar:1.9.5-rc1:test
[INFO] +- org.jukito:jukito:jar:1.1:test
[INFO] | +- org.mockito:mockito-core:jar:1.8.5:test
[INFO] | | +- (org.hamcrest:hamcrest-core:jar:1.1:test - omitted for duplicate
)
[INFO] | | \- org.objenesis:objenesis:jar:1.0:test
[INFO] | +- (junit:junit:jar:4.5:test - omitted for conflict with 4.10)
[INFO] | +- (com.google.inject:guice:jar:3.0:test - omitted for duplicate)
[INFO] | \- (com.google.inject.extensions:guice-assistedinject:jar:3.0:test - o
mitted for duplicate)
[INFO] +- org.seleniumhq.selenium:selenium-java:jar:2.22.0:test
[INFO] | +- org.seleniumhq.selenium:selenium-android-driver:jar:2.22.0:test
[INFO] | | \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
[INFO] | | +- cglib:cglib-nodep:jar:2.1_3:test
[INFO] | | +- (org.json:json:jar:20080701:test - omitted for conflict with
20090211)
[INFO] | | +- (org.seleniumhq.selenium:selenium-api:jar:2.22.0:test - omitt
ed for duplicate)
[INFO] | | +- (org.apache.httpcomponents:httpclient:jar:4.1.2:test - omitte
d for duplicate)
[INFO] | | +- (com.google.guava:guava:jar:12.0:test - omitted for conflict
with 13.0-rc2)
[INFO] | | +- (org.apache.commons:commons-exec:jar:1.1:test - omitted for d
uplicate)
[INFO] | | +- (net.java.dev.jna:jna:jar:3.4.0:test - omitted for duplicate)
[INFO] | | \- (net.java.dev.jna:platform:jar:3.4.0:test - omitted for dupli
cate)
[INFO] | +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.22.0:test
[INFO] | | \- (org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
- omitted for duplicate)
[INFO] | +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.22.0:test
[INFO] | | +- org.seleniumhq.selenium:selenium-api:jar:2.22.0:test
[INFO] | | | \- (com.google.guava:guava:jar:12.0:test - omitted for conflict
with 13.0-rc2)
[INFO] | | +- net.sourceforge.htmlunit:htmlunit:jar:2.9:test
[INFO] | | | +- xalan:xalan:jar:2.7.1:test
[INFO] | | | | \- xalan:serializer:jar:2.7.1:test
[INFO] | | | | \- (xml-apis:xml-apis:jar:1.3.04:test - omitted for duplic
ate)
[INFO] | | | +- commons-collections:commons-collections:jar:3.2.1:test
[INFO] | | | +- commons-lang:commons-lang:jar:2.6:test
[INFO] | | | +- org.apache.httpcomponents:httpmime:jar:4.1.2:test
[INFO] | | | | +- (org.apache.httpcomponents:httpcore:jar:4.1.2:test - omitt
ed for duplicate)
[INFO] | | | | \- (commons-logging:commons-logging:jar:1.1.1:test - omitted
for duplicate)
[INFO] | | | +- commons-codec:commons-codec:jar:1.4:test
[INFO] | | | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:test
[INFO] | | | +- xerces:xercesImpl:jar:2.9.1:test
[INFO] | | | | \- xml-apis:xml-apis:jar:1.3.04:test
[INFO] | | | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:test
[INFO] | | | +- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
[INFO] | | | | \- org.w3c.css:sac:jar:1.3:test
[INFO] | | | +- (commons-io:commons-io:jar:2.0.1:test - omitted for duplicate
)
[INFO] | | | \- (commons-logging:commons-logging:jar:1.1.1:compile - scope up
dated from test; omitted for duplicate)
[INFO] | | \- org.apache.httpcomponents:httpclient:jar:4.1.2:test
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.1.2:test
[INFO] | | \- (commons-logging:commons-logging:jar:1.1.1:compile - scope up
dated from test; omitted for duplicate)
[INFO] | +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.22.0:test
[INFO] | | +- (org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
- omitted for duplicate)
[INFO] | | +- commons-io:commons-io:jar:2.0.1:test
[INFO] | | \- org.apache.commons:commons-exec:jar:1.1:test
[INFO] | +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.22.0:test
[INFO] | | +- net.java.dev.jna:jna:jar:3.4.0:test
[INFO] | | +- net.java.dev.jna:platform:jar:3.4.0:test
[INFO] | | \- (org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
- omitted for duplicate)
[INFO] | +- org.seleniumhq.selenium:selenium-iphone-driver:jar:2.22.0:test
[INFO] | | \- (org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
- omitted for duplicate)
[INFO] | +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.22.0:test
[INFO] | | +- (org.seleniumhq.selenium:selenium-remote-driver:jar:2.22.0:test
- omitted for duplicate)
[INFO] | | \- (org.webbitserver:webbit:jar:0.4.6:test - omitted for duplicate)
[INFO] | +- org.seleniumhq.selenium:selenium-support:jar:2.22.0:test
[INFO] | | \- (org.seleniumhq.selenium:selenium-api:jar:2.22.0:test - omitted
for duplicate)
[INFO] | \- org.webbitserver:webbit:jar:0.4.6:test
[INFO] | \- org.jboss.netty:netty:jar:3.2.7.Final:test
[INFO] +- info.cukes:cucumber-java:jar:1.0.11:test
[INFO] | \- info.cukes:cucumber-core:jar:1.0.11:test
[INFO] | +- info.cukes:gherkin:jar:2.11.1:test
[INFO] | \- info.cukes:cucumber-html:jar:0.2.1:test
[INFO] +- info.cukes:cucumber-guice:jar:1.0.11:test
[INFO] | \- (info.cukes:cucumber-java:jar:1.0.11:test - omitted for duplicate)
[INFO] \- info.cukes:cucumber-junit:jar:1.0.11:test
[INFO] \- (info.cukes:cucumber-core:jar:1.0.11:test - omitted for duplicate)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.014s
[INFO] Finished at: Tue Sep 11 09:08:32 CDT 2012
[INFO] Final Memory: 13M/218M
[INFO] ------------------------------------------------------------------------
RemoteR 应该是一个自主运行的 CXF SOAP Web 服务。我在这个项目中想要的只是“客户端”部分,它能够向其他地方托管的 Web 服务发出请求。因此,在我当前的项目中看到 spring 依赖项让我怀疑这里可能存在一些 JPA 冲突。
最佳答案
您可以通过
查看您拥有哪些依赖项,包括传递依赖项mvn 依赖:树
但是我假设这个 jar 来自您的应用程序服务器。 jOnAS 是偶然吗?
这是一个依赖 Hibernate 实现 JPA 的示例
<properties>
<hibernate.version>4.1.4-Final</hibernate.version>
</properties>
......
......
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate.version}</version>
</dependency>
关于java - EJB 重写 JPA javax.persistence,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12371215/
在 Spring-MVC 应用程序中,我尝试使用 validator 。我将注释 @NotEmpty 和 @Email 放在我的实体之一上,当我尝试验证它时,出现此错误: java.lang.NoSu
网络是我硕士学位的最后一门类(class)。我确实有一个关于如何计算非持久、持久和持久流水线的 http 往返时间的问题。 在花了无数小时阅读有关该问题、从其他大学下载笔记甚至搜索 youtube 视
让我们考虑典型的 订购 和 订单商品 例子。假设 订单商品 是 的一部分订购 聚合,只能通过订单添加。所以,添加一个新的 订单商品 到 订购,我们必须通过 Repository 加载整个 Aggreg
// lookup existing user & set a currently null child entity (ContactInfo) user.setContactInfo(contac
我正在尝试关注 this tutorial .我想我不是从使用可下载项目开始,而是从我之前做过的一个简单的“spring MVC - Maven - eclipse”项目开始。这个项目运行良好。 因此
我正在使用打开 Kubernetes 选项的 docker 应用程序运行 mac OSX Catalina。我使用以下 yaml 和命令创建了一个 PersistentVolume。 apiVersi
假设我有一个类 Employee和一个类Company其中包含 Employee 的 LinkedList对象,我想编写一个添加 Employee 的方法到特定的数据库Company 。我创建了一个新
我实际上正在将我们应用程序的所有组件更新到最新版本。因此,除其他外,我将从 eclipselink-2.5.0 升级到 eclipselink-2.7.3,并从 Tomcat 7 升级到 TomEE。
我试图遵循《用GlassFish 3开始Java EE 6平台》一书第2章中的示例。我正在Windows中使用cmd中的EclipseLink,Derby和Maven。我真的不知道这一点,将不胜感激!
我只是看看ClassGuard (虽然我知道一些 objection )。 但是我得到了 javax.persistence.PersistenceException: [PersistenceUni
我的印象是,如果我们使用持久字段,就不需要 getter 方法,因为实体管理器直接引用实例变量。但是,当我从实体中删除 getter 和 setter 方法以具有持久字段时,未从数据库中检索到相应实例
我正在 Eclipse 中使用 Servlet、JPA、EJB 和 JBoss 进行项目。正如您在我的主题标题中看到的,我的 persistence.xml 文件有错误,但我不知道是哪个:
我已经尝试了一个星期或更长时间来让我的状态在 react native Android 应用程序中持续存在,但在重新水化后状态始终具有初始值。如果我使用 Redux devtools 检查 ASync
什么时候应该坚持,什么时候应该补充水分?命名约定非常困惑,因为作者几乎没有提到它们在 redux-persist 的上下文中的含义。 . 最佳答案 在不真正了解图书馆的情况下: persist = 将
我正在尝试按照老师文档中提供的信息设置一个简单的 jpa 2.0 项目。我已经处理这个问题好几个小时了,但无论我做什么,当我尝试创建 EntityManagerFactory 时,我总是遇到这个异常:
我有一个 Maven 项目,我将其转换为现在可与 Maven 一起使用的 JPA 项目。我的persistence.xml如下: My Persistence Unit
我正在使用 Netbeans 6.8 并构建简单的 Maven Web 应用程序项目。 为持久实体创建实体和主文件 [也创建持久单元] 并使用 EclipsLink。 但是当我运行主文件时出现这个错误
我是 Kubernetes 的新手,我很难理解 Kubernetes 中持久存储背后的整个想法。 这就足够了吗,或者我必须创建持久卷,如果我只部署这两个对象而不创建 PV 会发生什么情况? 存储应该在
我正在尝试使用 JPA 为我目前参与的 Java-EE 项目设置持久性,并且我遇到了许多配置问题。目前,我已经在 persistence.xml 中定义了一个 RESOURCE_LOCAL 持久性单元
Akka 持久性查询通过提供一个通用的基于异步流的查询接口(interface)来补充 Persistence,各种日志插件可以实现该接口(interface)以公开它们的查询功能。 这是来自 akk
我是一名优秀的程序员,十分优秀!