![]() |
1
2
我认为错误定义的类路径更可能出现在您这边,而不是一个虚假的版本。如果没有更多关于您正在使用的Hibernate版本的细节,以及类路径上的jar,我不知道要添加什么。 更新: 我建议使用 JPA注释 在休眠注释上。下面是我在Hibernate实体管理器的最新版本中使用的依赖项: org.hibernate:hibernate-entitymanager:jar:3.5.3-Final:compile +- org.hibernate:hibernate-core:jar:3.5.3-Final:compile | +- antlr:antlr:jar:2.7.6:compile | +- commons-collections:commons-collections:jar:3.2:compile | +- dom4j:dom4j:jar:1.6.1:compile | | \- xml-apis:xml-apis:jar:1.0.b2:compile | \- javax.transaction:jta:jar:1.1:compile +- org.hibernate:hibernate-annotations:jar:3.5.3-Final:compile | \- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile +- cglib:cglib:jar:2.2:compile | \- asm:asm:jar:3.1:compile +- javassist:javassist:jar:3.9.0.GA:compile \- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile |
![]() |
2
0
不,注释没有改变。 我们很难知道,如果你看的是一个假的版本,而不知道你的类路径上是什么。
你确定吗
hibernate-annotations
在你的课上吗?以及装有
|
![]() |
Gero Mendy · 如何为一个类分配兵变的结果。查询 1 年前 |
![]() |
Hamvy B · 替换不推荐的hibernate方法 1 年前 |
![]() |
Martin Pfeffer · Spring Boot JPA 1 年前 |
|
denstran · 休眠未生成正确的id 2 年前 |
![]() |
Frank · 忽略/跳过Hibernate架构验证中的特定字段 2 年前 |