hibernate 4.O 注解 one-to-one 异常
来源:互联网 发布:淘宝怎么解封永久封号 编辑:程序博客网 时间:2024/06/10 12:15
Caused by: java.lang.NoSuchMethodError: javax.persistence.JoinColumn.foreignKey()Ljavax/persistence/ForeignKey;
正常情况下,在连接的属性上 只要不写
@JoinColumn(name="wid")指定的列名是不会出错,但是一旦你写了就报错错,
我用的是myeclise ,myeclipse中
JAVAEE6.0中的 javax.persistence.jar与 hibernate4.3.8中的hibernate-jpa-2.1-api-1.0.0.Final.jar冲突
而我采取的措施是删除了JAVAEE6.0的库,运行就正常了,然后在加进来有正常了
总之是解决了问题
1 0
- hibernate 4.O 注解 one-to-one 异常
- hibernate annotation 双向 one-to-one 注解
- hibernate annotation 双向 one-to-one 注解
- hibernate annotation 双向 one-to-one 注解
- hibernate annotation 双向 one-to-one 注解
- Hibernate one-to-one
- hibernate :one-to-one
- hibernate:one-to-one
- Hibernate One to One
- hibernate one-to-many many-to-one 双向注解
- hibernate one-to-many many-to-one 双向注解
- hibernate one-to-many many-to-one 双向注解
- hibernate one-to-many many-to-one 双向注解
- hibernate one-to-one单项外键关联注解开发
- 使用注解的Hibernate one-to-one映射
- Hibernate的注解many-to-one
- hibernate注解版关联映射Many-to-One/Many-to-Many等&异常处理
- Hibernate映射one-to-one
- 【HTML】Canvas(4)-进阶
- Linux软连接和硬链接
- get和post的区别与联系
- java API中提供的HashMap的常用方法
- jquery ajax servlet
- hibernate 4.O 注解 one-to-one 异常
- 编程实现恩格玛加密机(C++)
- poj 1836 Alignment (DP LIS)
- 深入理解磁盘文件系统之inode
- Google Hack技巧——不用暴力也可以取得密码
- Kali_linux_x64安装Compiz
- 在Fragment中使用百度地图
- hive 启动问题记录 及解决方法
- soj3102 O(n)求第k小的数