org.hibernate.MappingException: Could not determine type for:

来源:互联网 发布:思途旅游cms源码 编辑:程序博客网 时间:2024/05/19 12:18

org.hibernate.MappingException: Could not determine type for: hibernate_OnetoOne.entity.IdCard, at table: Students, for columns: [org.hibernate.mapping.Column(card)]

在进行hibernate对映射关系进行注解时,同一个实体类的注解,有的是注解到属性上面的,有的是注解到了getXxx()方法上的     在将注解放置的位置统一之后就解决了。




0 0
原创粉丝点击