Could not determine type for: java.util.List, at table: xxxxx, for columns: [org.hibernate.mapping

错误:

Could not determine type for: java.util.List, at table: zk_zjk_wbyjy, 
for columns: [org.hibernate.mapping.Column(zk_zjk_prnd_list)]

在这里插入图片描述

原因是在实体类加了list子表列表
在这里插入图片描述

解决方法:
加上以下注解便不会报错

 @ElementCollection(targetClass=ZkZjkWbyjyKt.class)

在这里插入图片描述


版权声明:本文为CheersToLife原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。