org.hibernate.MappingException: Could not determine type for: hibernate_OnetoOne.entity.IdCard, at table: Students, for columns: [org.hibernate.mapping.Column(card)]
在进行hibernate对映射关系进行注解时,同一个实体类的注解,有的是注解到属性上面的,有的是注解到了getXxx()方法上的 在将注解放置的位置统一之后就解决了。