Hibernate的集合报错

来源:互联网 发布:centos minimal iso 编辑:程序博客网 时间:2024/05/16 15:42

Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: t_customer, for columns: [org.hibernate.mapping.Column(address)]



找了好久,发现是因为@注释没有统一放到get方法上,统一放到字段和统一放到get方法都不会有问题。

0 0
原创粉丝点击