实体类注解错误:Could not determine type for: java.util.Set

今天配置实体类注解时,出现以下错误:

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

 

解决方案:注解要么写在字段上,要么写在getXX上,千万千万不能混合使用,否则会报这个错误!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章